Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/reactivate-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Reactivate Workflows

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:

permissions:
actions: write

jobs:
reactivate_workflow:
name: Reactivate Workflow
runs-on: ubuntu-latest
strategy:
matrix:
WORKFLOW: ["PHP checks", "Reactivate Workflows"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be interesting to see if this "Reactivate Workflows" workflow might get disabled as well and if it can recover from that. So we still have to monitor and see if this actually works 😅

steps:
- name: Reactivate workflow
shell: bash
run: gh workflow enable ${{ matrix.WORKFLOW }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if these are needed because the workflows contain spaces. On the other hand it shouldn't hurt to add quotes 🤷

Suggested change
run: gh workflow enable ${{ matrix.WORKFLOW }}
run: gh workflow enable "${{ matrix.WORKFLOW }}"