diff --git a/.github/workflows/prismic-linting.yml b/.github/workflows/prismic-linting.yml index 92ffcb0d9f..62810c07b0 100644 --- a/.github/workflows/prismic-linting.yml +++ b/.github/workflows/prismic-linting.yml @@ -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 }} \ No newline at end of file + # 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 }} \ No newline at end of file