From 93ad0ef2ea000eedee248177400f86f221e0f456 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Thu, 15 Feb 2024 10:41:17 +0000 Subject: [PATCH] ci: Adopt the liskin/gh-workflow-keepalive action This avoids hardcoding the workflow filename and thus makes refactoring/renaming less error-prone. --- .github/workflows/packdeps.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/packdeps.yml b/.github/workflows/packdeps.yml index 109312b143..60a83794ce 100644 --- a/.github/workflows/packdeps.yml +++ b/.github/workflows/packdeps.yml @@ -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