Skip to content

Commit

Permalink
Create redeliver-webhooks.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
beliaev-maksim authored Dec 9, 2024
1 parent 7c2d1c1 commit d50be11
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/redeliver-webhooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Redeliver failed webhook deliveries

# This workflow runs every hour or when manually triggered.
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:

# This workflow will use the built in `GITHUB_TOKEN` to check out the repository contents. This grants `GITHUB_TOKEN` permission to do that.
permissions:
contents: read

#
jobs:
redeliver-failed-deliveries:
name: Redeliver failed deliveries
runs-on: ubuntu-latest
steps:
- name: Check out repo content
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'

# This step installs the octokit library. The script that this workflow will run uses the octokit library.
- name: Install dependencies
run: npm install octokit

- name: Run script
env:
APP_ID: ${{ secrets.APP_ID }}
PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
run: |
node .github/workflows/scripts/redeliver-failed-deliveries.js

0 comments on commit d50be11

Please # to comment.