File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ run-name: Patch and build ${{ github.event_name == 'schedule' && 'latest upstrea
3
3
4
4
on :
5
5
schedule :
6
- - cron : ' 0 0 * * * ' # Daily at midnight
6
+ - cron : ' 0 0 * * 0 ' # Weekly at midnight
7
7
workflow_dispatch :
8
8
inputs :
9
9
tag :
10
10
description : ' Specify a tag (optional)'
11
11
required : false
12
12
default : ' '
13
+ force :
14
+ description : ' Force push branch and tag'
15
+ required : false
16
+ default : ' false'
13
17
14
18
jobs :
15
19
sync-and-patch :
@@ -101,7 +105,7 @@ jobs:
101
105
echo "failed_patches=${failed_patches[@]}" >> $GITHUB_ENV
102
106
103
107
# Push the branch even if only some patches were applied
104
- git push -f https://github.com/${{ github.repository }}.git HEAD
108
+ git push https://github.com/${{ github.repository }}.git HEAD ${{ inputs.force == 'true' && '--force' }}
105
109
env :
106
110
PAT_TOKEN : ${{ secrets.PAT_TOKEN }}
107
111
@@ -110,7 +114,7 @@ jobs:
110
114
run : |
111
115
git tag -d "${{ steps.determine-tag.outputs.tag }}" || echo "Tag does not exist locally, skipping delete."
112
116
git tag -a "${{ steps.determine-tag.outputs.tag }}" -m "Tagging version ${{ steps.determine-tag.outputs.tag }} after applying patches"
113
- git push origin "${{ steps.determine-tag.outputs.tag }}"
117
+ git push origin "${{ steps.determine-tag.outputs.tag }}" ${{ inputs.force == 'true' && '--force' }}
114
118
115
119
build :
116
120
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments