From 3675f5b13172fd490246a56a2154a48a52c250f4 Mon Sep 17 00:00:00 2001 From: Michal Sevcik Date: Tue, 11 Apr 2023 15:47:09 +0200 Subject: [PATCH] ci: update notify-release action permissions --- .github/workflows/notify-release.yml | 35 ++++++++++++++++------------ 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/notify-release.yml b/.github/workflows/notify-release.yml index 2f671f6..a328cb8 100644 --- a/.github/workflows/notify-release.yml +++ b/.github/workflows/notify-release.yml @@ -1,17 +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 - steps: - - name: Notify release - uses: nearform/github-action-notify-release@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + types: + - closed +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Notify release + uses: nearform-actions/github-action-notify-release@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + permissions: + issues: write + contents: read