Skip to content

Commit

Permalink
ci: replace github.ref with github.ref_name
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Sep 2, 2024
1 parent 4e6a24f commit 80489e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/core-prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
osshr-password: ${{ secrets.ORG_OSSRH_PASSWORD }}

Bump-Main-Version:
if: github.ref == 'main'
if: github.ref_name == 'main'
needs: [ Prepare-Release ]
runs-on: ubuntu-latest
steps:
Expand All @@ -74,7 +74,7 @@ jobs:
base_version: ${{ inputs.version }}

Publish-Main-Snapshot:
if: github.ref == 'main'
if: github.ref_name == 'main'
needs: [ Bump-Version ]
uses: eclipse-edc/.github/.github/workflows/publish-snapshot.yml@main
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/core-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- id: set-version
run: |
VERSION=$(echo ${{ github.ref }} | cut -d '/' -f 2)
VERSION=$(echo ${{ github.ref_name }} | cut -d '/' -f 2)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- uses: eclipse-edc/.github/.github/actions/set-project-version@main
Expand All @@ -37,7 +37,7 @@ jobs:
git commit -m "Release Version $TAG"
git tag $TAG
git push --atomic origin ${{ github.ref }} $TAG
git push --atomic origin ${{ github.ref_name }} $TAG
echo "TAG=$TAG" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 80489e4

Please sign in to comment.