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