From 37c2bafdf1e3350d8cf89eac9d84dff7921a767c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0ev=C4=8D=C3=ADk?= Date: Tue, 11 Apr 2023 16:54:02 +0200 Subject: [PATCH] ci: update notify-release action permissions (#283) --- .github/workflows/notify-release.yml | 35 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/notify-release.yml b/.github/workflows/notify-release.yml index 19f8437..8500aeb 100644 --- a/.github/workflows/notify-release.yml +++ b/.github/workflows/notify-release.yml @@ -1,21 +1,22 @@ -name: notify-release -on: - workflow_dispatch: - schedule: - - cron: '30 8 * * *' +name: notify-release +'on': + workflow_dispatch: + schedule: + - cron: 30 8 * * * release: - types: [published] + types: + - published issues: - types: [closed] -jobs: - setup: - runs-on: ubuntu-latest + types: + - closed +jobs: + setup: + runs-on: ubuntu-latest permissions: issues: write - steps: - - name: Notify release - uses: nearform-actions/github-action-notify-release@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - + contents: read + steps: + - name: Notify release + uses: nearform-actions/github-action-notify-release@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}