Skip to content

Commit

Permalink
build: update digital.sbb.ch on release (#5)
Browse files Browse the repository at this point in the history
This PR adds a step to the release action to trigger the digital.sbb.ch repository dispatch workflow.
  • Loading branch information
kyubisation authored Mar 22, 2024
1 parent 4a5c122 commit d4dfae0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,15 @@ runs:
run: aws s3 cp . s3://cloudfront-icon-cdn-backend-esta-web-prod --recursive --exclude "*" --include "icons/*.svg" --include "icons/index.json"
env:
S3BUCKET:
shell: bash
shell: bash

- name: Dispatch digital.sbb.ch build
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DISPATCH_TOKEN }}
script: |
await github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
repo: 'digital.sbb.ch',
event_type: 'build-and-deploy',
})

0 comments on commit d4dfae0

Please sign in to comment.