-
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (38 loc) · 1.27 KB
/
fork_rebase.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
35
36
37
38
39
40
41
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