Skip to content

Commit

Permalink
feat: keep cron alive
Browse files Browse the repository at this point in the history
  • Loading branch information
diofeher committed Dec 28, 2024
1 parent f33c8c2 commit 217af0d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
concurrency:
group: index
cancel-in-progress: false
permissions:
actions: write
jobs:
generate:
name: Run generation
Expand Down Expand Up @@ -43,3 +45,13 @@ jobs:
env:
PG_CONNECTION_STRING: ${{secrets.PG_CONNECTION_STRING}}
run: go run ./
- name: Keep Cron Alive
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.actions.enableWorkflow({
owner: github.repository_owner,
repo: github.event.repository.name,
workflow_id: github.workflow_ref,
})

0 comments on commit 217af0d

Please sign in to comment.