Skip to content

Commit b0f998c

Browse files
Move fem-on-colab/warn-workflow-about-to-be-disabled-action@main to a standalone job
1 parent 62f5649 commit b0f998c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/stats.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ jobs:
5353
name: stats
5454
path: _build/stats
5555
retention-days: 1
56+
57+
warn:
58+
runs-on: ubuntu-latest
59+
if: github.repository == 'fem-on-colab/fem-on-colab.github.io' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
60+
steps:
5661
- name: Warn if scheduled workflow is about to be disabled
57-
if: github.repository == 'fem-on-colab/fem-on-colab.github.io' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
5862
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@main
5963
with:
6064
workflow-filename: stats.yml

.github/workflows/website.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ jobs:
7979
name: website
8080
path: _build/html
8181
retention-days: 1
82+
83+
warn:
84+
runs-on: ubuntu-latest
85+
if: github.repository == 'fem-on-colab/fem-on-colab.github.io' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
86+
steps:
8287
- name: Warn if scheduled workflow is about to be disabled
83-
if: github.repository == 'fem-on-colab/fem-on-colab.github.io' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
8488
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@main
8589
with:
8690
workflow-filename: website.yml

0 commit comments

Comments
 (0)