ci: Adopt the liskin/gh-workflow-keepalive action

This avoids hardcoding the workflow filename and thus makes
refactoring/renaming less error-prone.
This commit is contained in:
Tomas Janousek 2024-02-15 10:41:17 +00:00
parent ae5949657b
commit 93ad0ef2ea

View File

@ -42,10 +42,11 @@ jobs:
*.cabal
workflow-keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Re-enable workflow
env:
- uses: liskin/gh-workflow-keepalive@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api -X PUT repos/${{ github.repository }}/actions/workflows/packdeps.yml/enable