-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.07 KB
/
sync_with_upstream.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Sync with FEM on Colab website
on:
push:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Sync with FEM on Colab website
if: github.repository == 'fem-on-kaggle/fem-on-kaggle.github.io'
uses: fem-on-colab/is-synced-with-upstream-action@main
with:
upstream-repository: fem-on-colab/fem-on-colab.github.io
upstream-ref: main
target-ref: ${{ github.ref_name }}
file-patterns: '* **/*'
commit-message-prefix: Sync with FEM on Colab website
token: ${{ secrets.WORKFLOW_ACCESS_TOKEN }}
warn:
runs-on: ubuntu-latest
if: github.repository == 'fem-on-kaggle/fem-on-kaggle.github.io' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
steps:
- name: Warn if scheduled workflow is about to be disabled
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@main
with:
workflow-filename: sync_with_upstream.yml
days-elapsed: 50