Skip to content

Commit

Permalink
fix: release-drafter permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-klimko committed Jul 18, 2024
1 parent b2917bc commit df8345b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Reference: https://github.com/release-drafter/release-drafter
name: Create Release

on:
push:
branches:
- master

jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up jq
uses: dcarbone/install-jq-action@v1.0.1

- name: Get release version from service.yaml
run: |
RELEASE_VERSION=$(jq -r '.version' package.json )
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
publish: true
version: ${{ env.RELEASE_VERSION }}
config-name: release-drafter.yaml

0 comments on commit df8345b

Please sign in to comment.