Skip to content

Commit

Permalink
Update check_for_broken_links.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblogan authored Aug 23, 2023
1 parent 448d66a commit 9793ce6
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/check_for_broken_links.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: LinkChecker
on:
schedule:
- cron: '0 17 * * 1-5'
workflow_dispatch:
permissions:
contents: read
Expand All @@ -26,17 +24,6 @@ jobs:
script: |
const { checkLinks } = require('./tasks/link-checker.js');
return await checkLinks();
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
with:
role-to-assume: arn:aws:iam::464149486631:role/github_action_read_slack_webhook_url
aws-region: us-west-2
- name: Read secrets from AWS Secrets Manager into environment variables
uses: aws-actions/aws-secretsmanager-get-secrets@022e8919774ecb75e8e375656d7b1898936ab878 # v1.0.4
with:
secret-ids: |
SLACK_WEBHOOK_URL
parse-json-secrets: true
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
Expand All @@ -46,4 +33,4 @@ jobs:
"message": "${{ steps.checkLinks.outputs.result }}"
}
env:
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ vars.SLACK_WEBHOOK_URL_SLACK_WEBHOOK_URL }}

0 comments on commit 9793ce6

Please sign in to comment.