Skip to content

Commit

Permalink
fix version extraction and reference handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdzumair committed Nov 6, 2024
1 parent f5f92f6 commit 4020ddd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@ jobs:
echo "Error: Failed to extract previous version from release body"
exit 1
fi
VERSION="${GITHUB_REF#refs/tags/v}"
echo "PREVIOUS_VERSION=${PREVIOUS_VERSION}" >> "$GITHUB_OUTPUT"
echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Update version numbers
if: "!github.event.release.prerelease"
run: |
make update-version VERSION_NEW=${{ steps.extract_versions.outputs.VERSION }}
make update-version VERSION_NEW=${{ github.ref_name }}
- name: Commit and push version updates
if: "!github.event.release.prerelease"
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "chore: update version to ${{ steps.extract_versions.outputs.VERSION }}"
git commit -m "chore: update version to ${{ github.ref_name }}"
git push origin HEAD:main
mediafusion_docker_build:
Expand Down

0 comments on commit 4020ddd

Please sign in to comment.