Skip to content

Commit

Permalink
build(ci): fix pre-release tag not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Sep 30, 2024
1 parent 91345b5 commit cdb599e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
mv app/build/outputs/apk/release/app-release-unsigned-signed.apk flixclusive-release.apk
echo "release_sha=$(sha256sum flixclusive-release.apk | cut -d ' ' -f1)" >> $GITHUB_OUTPUT
echo "short_sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT
echo "short_sha=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -100,7 +100,12 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release delete pre-release --yes || true
echo "Attempting to delete pre-release tag..."
git tag -d pre-release || echo "Local tag 'pre-release' does not exist."
git push origin :refs/tags/pre-release || echo "Remote tag 'pre-release' does not exist."

echo "Creating new pre-release..."
gh release create pre-release \
--title "PR-${{ needs.build.outputs.short_sha }}" \
--notes "$(cat << EOF
Expand Down

0 comments on commit cdb599e

Please sign in to comment.