Bump actions/cache from 4.1.0 to 4.1.1 in /.github/actions/setup-java-build in the catch-all group #460
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
pull_request: | |
types: | |
- closed | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
fetch-depth: 0 | |
ref: master | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
- name: Fetch next version | |
run: | | |
echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV | |
- name: Check if release is necessary | |
id: release_guard | |
run: | | |
if git tag | grep -q "^${VERSION}$"; then | |
echo "do_release=false" >> $GITHUB_OUTPUT | |
else | |
echo "do_release=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Apply release changes | |
if: steps.release_guard.outputs.do_release == 'true' | |
run: | | |
./release.sh $VERSION | |
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 | |
with: | |
branch: master | |
skip_checkout: true | |
commit_message: Release ${{ env.VERSION }} | |
commit_user_name: ${{ vars.BOT_GITHUB_USERNAME }} | |
commit_user_email: ${{ vars.BOT_GITHUB_EMAIL }} | |
- name: Generate release notes | |
if: steps.release_guard.outputs.do_release == 'true' | |
env: | |
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | |
run: gh release create "$VERSION" --generate-notes -t "$VERSION" |