Use permissions as a top-level key

This commit is contained in:
MaksimZhukov 2021-05-27 16:20:43 +03:00
parent 5529ce4143
commit 95f03216f8
1 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,8 @@ on:
env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
permissions:
contents: write
jobs:
update_tag:
@ -17,8 +19,6 @@ jobs:
environment:
name: releaseNewActionVersion
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Update the ${{ env.TAG_NAME }} tag
id: update-major-tag