Sync GitHub workflows with open in Colab workflow #1155
This file contains hidden or 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 GitHub workflows with open in Colab workflow | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Sync GitHub workflows with open in Colab workflow | |
| if: github.repository == 'fem-on-kaggle/open-in-kaggle-workflow' | |
| uses: fem-on-colab/is-synced-with-upstream-action@main | |
| with: | |
| upstream-repository: fem-on-colab/open-in-colab-workflow | |
| upstream-ref: main | |
| target-ref: ${{ github.ref_name }} | |
| file-patterns: .github/workflows/*.yml | |
| commit-message-prefix: Sync GitHub workflows with open in Colab workflow | |
| token: ${{ secrets.WORKFLOW_ACCESS_TOKEN }} | |
| warn: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'fem-on-kaggle/open-in-kaggle-workflow' && 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 |