Sync with FEM on Colab website #877
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |