diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index aaea101..f3db195 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -10,6 +10,9 @@ inputs: aws-secret-access-key: description: 'AWS access key secret' required: true + github-token: + description: 'GitHub token to trigger digital.sbb.ch deployment' + required: true runs: using: 'composite' @@ -58,7 +61,7 @@ runs: - name: Dispatch digital.sbb.ch build uses: actions/github-script@v6 with: - github-token: ${{ secrets.DISPATCH_TOKEN }} + github-token: ${{ inputs.github-token }} script: | await github.rest.repos.createDispatchEvent({ owner: context.repo.owner, diff --git a/.github/workflows/figma-publish.yml b/.github/workflows/figma-publish.yml index 17546c7..c8f8aa7 100644 --- a/.github/workflows/figma-publish.yml +++ b/.github/workflows/figma-publish.yml @@ -65,3 +65,4 @@ jobs: npm-token: ${{ secrets.NPM_TOKEN }} aws-access-key-id: ${{ secrets.ICON_CDN_AWS_ACCESS_ID }} aws-secret-access-key: ${{ secrets.ICON_CDN_AWS_ACCESS_KEY }} + github-token: ${{ secrets.DISPATCH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 167e811..8f5822b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,3 +33,4 @@ jobs: npm-token: ${{ secrets.NPM_TOKEN }} aws-access-key-id: ${{ secrets.ICON_CDN_AWS_ACCESS_ID }} aws-secret-access-key: ${{ secrets.ICON_CDN_AWS_ACCESS_KEY }} + github-token: ${{ secrets.DISPATCH_TOKEN }}