File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 80
80
cancel-in-progress : true
81
81
needs :
82
82
- check_if_version_upgraded
83
+ if : needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true'
83
84
env :
84
85
TO_VERSION : ${{ needs.check_if_version_upgraded.outputs.to_version }}
85
86
steps :
@@ -105,6 +106,7 @@ jobs:
105
106
needs :
106
107
- trigger_pre_production_deploy
107
108
- check_if_version_upgraded
109
+ if : needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true'
108
110
env :
109
111
TO_VERSION : ${{ needs.check_if_version_upgraded.outputs.to_version }}
110
112
steps :
Original file line number Diff line number Diff line change
1
+ name : Sync upstream
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 7 * * *' # every day at 7 AM UTC
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ sync :
10
+ name : Sync repository with upstream repository
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout fork
14
+ uses : actions/checkout@v4
15
+ with :
16
+ token : ${{ secrets.PAT_FOR_UPSTREAM_SYNC }}
17
+ fetch-depth : 0
18
+
19
+ - name : Configure Git
20
+ run : |
21
+ git config user.name "github-actions[bot]"
22
+ git config user.email "github-actions[bot]@users.noreply.github.com"
23
+
24
+ - name : Add upstream remote
25
+ run : |
26
+ git remote add upstream https://github.com/codegouvfr/sill.git
27
+ git fetch upstream
28
+
29
+ - name : Sync with upstream/main
30
+ run : |
31
+ git checkout main
32
+ git rebase upstream/main
33
+
34
+ - name : Push to origin
35
+ run : git push origin main --force-with-lease --no-verify
You can’t perform that action at this time.
0 commit comments