Skip to content

Generate Release Commit #6

Generate Release Commit

Generate Release Commit #6

Workflow file for this run

name: Generate Release Commit
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
release-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Clojure CLI and Babashka
uses: DeLaGuardo/[email protected]
with:
cli: 'latest'
bb: 'latest'
- name: Configure Git
run: |
git config --global user.name 'clj-mergetool Release Bot'
git config --global user.email '[email protected]'
- name: Create Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
clojure -T:build release-version
VERSION=$(cat resources/VERSION)
NOTES=$(cat RELEASE_NOTES.md)
git push origin HEAD:release-$VERSION
gh pr create --title "Release $VERSION" --body "$NOTES" --base main --head release-$VERSION