Rebase dolfinx fork #1296
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: Rebase dolfinx fork | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
rebase: | |
if: >- | |
(github.event_name == 'schedule' && github.repository == 'multiphenics/multiphenicsx') | |
|| (github.event_name != 'schedule') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set username and email | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
- name: Clone dolfinx repository | |
run: | | |
git clone https://github.com/fenics/dolfinx.git | |
- name: Add dolfinx fork | |
run: | | |
cd dolfinx | |
git remote add fork https://github.com/francesco-ballarin/dolfinx.git | |
git fetch fork | |
- name: Rebase dolfinx fork | |
run: | | |
cd dolfinx | |
git checkout -b github_actions | |
git merge fork/migration | |
warn: | |
runs-on: ubuntu-latest | |
if: github.repository == 'multiphenics/multiphenicsx' && 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: fork_rebase.yml | |
days-elapsed: 55 |