Skip to content

Commit

Permalink
Add credentials?
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Sep 26, 2024
1 parent 310b82d commit 1859370
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/prismic-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,28 @@ jobs:
- name: Get webhook
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
aws-region: eu-west-1
role-to-assume: ${{ secrets.EXPERIENCE_GHA_ROLE_ARN }}
secret-ids: |
SLACK_WEBHOOK_GA_PRISMIC_LINTING_URL, prismic-model/slack/linting
- name: Run Prismic linting
run: docker compose run prismic_model yarn lintPrismicData slackWebhookUrl=SLACK_WEBHOOK_GA_PRISMIC_LINTING_URL
on-failure:
runs-on: ubuntu-latest
if: ${{ always() && (needs.prismic_linting.result == 'failure' || needs.prismic_linting.result == 'timed_out') }}
needs:
- prismic_linting
steps:
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/slack-github-action@v1.27.0
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"action_name": "Prismic linting action",
"status": "${{ needs.prismic_linting.result }}",
"link": "https://github.com/wellcomecollection/wellcomecollection.org/actions/workflows/prismic-linting.yml"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_GA_ACTION_URL }}
# on-failure:
# runs-on: ubuntu-latest
# if: ${{ always() && (needs.prismic_linting.result == 'failure' || needs.prismic_linting.result == 'timed_out') }}
# needs:
# - prismic_linting
# steps:
# - name: Send GitHub Action trigger data to Slack workflow
# id: slack
# uses: slackapi/slack-github-action@v1.27.0
# with:
# # This data can be any valid JSON from a previous step in the GitHub Action
# payload: |
# {
# "action_name": "Prismic linting action",
# "status": "${{ needs.prismic_linting.result }}",
# "link": "https://github.com/wellcomecollection/wellcomecollection.org/actions/workflows/prismic-linting.yml"
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_GA_ACTION_URL }}

0 comments on commit 1859370

Please sign in to comment.