release #2
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: publish draft release | |
permissions: write-all | |
on: | |
workflow_dispatch: | |
jobs: | |
single-node: | |
runs-on: [self-hosted, style-checker] | |
steps: | |
- uses: actions/checkout@main | |
- name: Install Go 1.21 | |
uses: actions/[email protected] | |
with: | |
stable: false | |
go-version: 1.21 | |
- name: Prepare release | |
id: release_prep | |
run: | | |
go run internal/cmd/release_prep/main.go | |
- name: Commit and push hanges | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Update release notes" | |
git push | |
- name: Publish draft release | |
env: | |
RELEASE_API_URL: ${{ steps.release_prep.outputs.RELEASE_URL }} | |
run: | | |
curl -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.v3+json" $RELEASE_API_URL -d '{"draft": false}' |