Skip to content

release

release #1

Workflow file for this run

name: publish draft release
permissions: read-all|write-all

Check failure on line 3 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / publish draft release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 3, Col: 14): Unexpected value 'read-all|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}'