8
8
description : ' Specify an upstream version tag'
9
9
required : true
10
10
default : ' v1.23.1'
11
+ suffix :
12
+ description : ' Optional image tag suffix'
13
+ default : ' '
14
+ required : false
11
15
12
16
jobs :
13
17
patch-upstream :
38
42
fi
39
43
40
44
- name : Create branch from determined tag
41
- run : git checkout tags/${{ inputs.tag }} -b apply-patches-${{ inputs.tag }}
45
+ run : git checkout tags/${{ inputs.tag }} -b apply-patches-${{ inputs.tag }}${{ inputs.suffix }}
42
46
43
47
- name : Configure Git user
44
48
run : |
@@ -57,15 +61,15 @@ jobs:
57
61
env :
58
62
GITHUB_TOKEN : ${{ secrets.PAT_TOKEN }}
59
63
run : |
60
- git tag -d "${{ inputs.tag }}" || echo "Local tag does not exist, skipping delete."
61
- git push --delete origin "${{ inputs.tag }}" || echo "Remote tag does not exist, skipping delete."
62
- git tag -a "${{ inputs.tag }}" -m "Tagging version ${{ inputs.tag }} after applying patches"
63
- git push origin "${{ inputs.tag }}" --force
64
- echo '{"ref":"${{ inputs.tag }}"}' | gh workflow run build.yml --ref "ci " --repo "blender/gitea" --json
64
+ git tag -d "${{ inputs.tag }}${{ inputs.suffix }} " || echo "Local tag does not exist, skipping delete."
65
+ git push --delete origin "${{ inputs.tag }}${{ inputs.suffix }} " || echo "Remote tag does not exist, skipping delete."
66
+ git tag -a "${{ inputs.tag }}${{ inputs.suffix }} " -m "Tagging version ${{ inputs.tag }} after applying patches"
67
+ git push origin "${{ inputs.tag }}${{ inputs.suffix }} " --force
68
+ echo '{"ref":"${{ inputs.tag }}${{ inputs.suffix }} "}' | gh workflow run build.yml --ref "${{ github.ref_name }} " --repo "blender/gitea" --json
65
69
66
70
- name : Push branch
67
71
if : always()
68
- run : git push origin apply-patches-${{ inputs.tag }} --force
72
+ run : git push origin apply-patches-${{ inputs.tag }}${{ inputs.suffix }} --force
69
73
env :
70
74
GITHUB_TOKEN : ${{ secrets.PAT_TOKEN }}
71
75
0 commit comments