File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 type : boolean
1717
1818concurrency :
19- group : build-and-test-${{ github.head_ref || github.ref }}
19+ group : build-and-test-${{ inputs.target_branch || github.ref }}
2020 cancel-in-progress : true
2121
2222jobs :
3030 steps :
3131 - name : Checkout Repository
3232 uses : actions/checkout@v6
33+ with :
34+ ref : ${{ inputs.target_branch || github.ref }}
35+
3336 - name : Apply patch to buildscript.properties
3437 run : sed -i 's/debug_all = false/debug_all = true/g' buildscript.properties
3538
Original file line number Diff line number Diff line change 66 paths : ['src/main/java/**', 'src/test/**']
77
88concurrency :
9- group : format-${{ github.head_ref || github.ref }}
9+ group : format-${{ inputs.target_branch || github.ref }}
1010 cancel-in-progress : true
1111
1212jobs :
2222 - name : Checkout Repository
2323 uses : actions/checkout@v6
2424 with :
25- ref : ${{ github.head_ref }}
25+ ref : ${{ inputs.target_branch || github.ref }}
2626
2727 - name : Setup Build
2828 uses : ./.github/actions/build_setup
Original file line number Diff line number Diff line change 2929 MODRINTH_PROJECT_ID : " ipueNiWG"
3030
3131concurrency :
32- group : publish-${{ github.head_ref || github.ref }}
32+ group : publish-${{ inputs.target_branch || github.ref }}
3333 cancel-in-progress : true
3434
3535jobs :
4343 steps :
4444 - name : Checkout Repository
4545 uses : actions/checkout@v6
46+ with :
47+ ref : ${{ inputs.target_branch || github.ref }}
48+ fetch-tags : true
4649
4750 - name : Check if tag already exists
4851 run : |
Original file line number Diff line number Diff line change 77 - ' *'
88
99concurrency :
10- group : test-${{ github.head_ref || github.ref }}
10+ group : test-${{ inputs.target_branch || github.ref }}
1111 cancel-in-progress : true
1212
1313jobs :
1818 steps :
1919 - name : Checkout Repository
2020 uses : actions/checkout@v6
21+ with :
22+ ref : ${{ inputs.target_branch || github.ref }}
2123
2224 - name : Apply patch to buildscript.properties
2325 run : sed -i 's/debug_all = false/debug_all = true/g' buildscript.properties
Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212
1313 # Avoid running this workflow on forks
14- if : github.repository == 'GTModpackTeam/GTExpert-Core '
14+ if : github.repository == 'GTModpackTeam/GTMoreTools '
1515
1616 permissions :
1717 contents : write
2020 steps :
2121 - name : Checkout Repository
2222 uses : actions/checkout@v6
23+ with :
24+ ref : ${{ inputs.target_branch || github.ref }}
2325
2426 - name : Setup Build
2527 uses : ./.github/actions/build_setup
Original file line number Diff line number Diff line change 99 workflow_dispatch :
1010
1111concurrency :
12- group : gradle-cache-${{ github.ref }}
12+ group : gradle-cache-${{ inputs.target_branch || github.ref }}
1313 cancel-in-progress : true
1414
1515jobs :
2020 steps :
2121 - name : Checkout Repository
2222 uses : actions/checkout@v6
23+ with :
24+ ref : ${{ inputs.target_branch || github.ref }}
2325
2426 - name : Setup Build
2527 uses : ./.github/actions/build_setup
You can’t perform that action at this time.
0 commit comments