File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 directory : " /"
55 schedule :
66 interval : " daily"
7- time : " 08:00 "
8- timezone : " Europe/Paris "
7+ cooldown :
8+ default-days : 2
99 labels :
1010 - " :game_die: dependencies"
1111 - " :robot: bot"
Original file line number Diff line number Diff line change 11# reusable workflow
22name : .build
33
4- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
54permissions :
65 contents : read
76
9089 build :
9190 runs-on : ${{ startsWith(matrix.platform, 'linux/arm') && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
9291 permissions :
93- # same as global permissions
94- contents : read
95- # required to push to GHCR
96- packages : write
92+ contents : read # same as global permissions
93+ packages : write # required to push to GHCR
9794 needs :
9895 - prepare
9996 strategy :
@@ -165,10 +162,8 @@ jobs:
165162 runs-on : ubuntu-latest
166163 if : github.event_name != 'pull_request'
167164 permissions :
168- # same as global permissions
169- contents : read
170- # required to push to GHCR
171- packages : write
165+ contents : read # same as global permissions
166+ packages : write # required to push to GHCR
172167 needs :
173168 - build
174169 steps :
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87permissions :
98 contents : read
109
2625 build :
2726 uses : ./.github/workflows/.build.yml
2827 permissions :
29- # same as global permissions
30- contents : read
31- # required to push to GHCR
32- packages : write
28+ contents : read # same as global permissions
29+ packages : write # required to push to GHCR
3330 secrets : inherit
3431 strategy :
3532 fail-fast : false
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87permissions :
98 contents : read
109
@@ -24,16 +23,14 @@ jobs:
2423 labeler :
2524 runs-on : ubuntu-latest
2625 permissions :
27- # same as global permissions
28- contents : read
29- # required to update labels
30- issues : write
26+ contents : read # same as global permissions
27+ issues : write # required to update labels
3128 steps :
3229 -
3330 name : Checkout
34- uses : actions/checkout@v4
31+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3532 -
3633 name : Run Labeler
37- uses : crazy-max/ghaction-github-labeler@v5
34+ uses : crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916 # v5.3.0
3835 with :
3936 dry-run : ${{ github.event_name == 'pull_request' }}
Original file line number Diff line number Diff line change @@ -4,19 +4,14 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87permissions :
98 contents : read
109
1110on :
1211 push :
1312 branches :
1413 - ' master'
15- paths-ignore :
16- - ' **.md'
1714 pull_request :
18- paths-ignore :
19- - ' **.md'
2015
2116jobs :
2217 test :
3530 steps :
3631 -
3732 name : Build xgo
38- uses : docker/bake-action@v6
33+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
3934 with :
4035 targets : image
4136 set : |
4540 *.cache-from=type=gha,scope=go-${{ matrix.go_version }}-linux-amd64
4641 -
4742 name : Test ${{ matrix.case }} for go ${{ matrix.go_version }}
48- uses : docker/bake-action@v6
43+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
4944 with :
5045 targets : test-${{ matrix.case }}
5146 env :
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ concurrency:
44 group : ${{ github.workflow }}-${{ github.ref }}
55 cancel-in-progress : true
66
7- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
87permissions :
98 contents : read
109
1413 - ' master'
1514 tags :
1615 - ' v*'
17- paths-ignore :
18- - ' **.md'
1916 pull_request :
2017 branches :
2118 - ' master'
22- paths-ignore :
23- - ' **.md'
2419
2520env :
2621 DESTDIR : ./bin
@@ -29,36 +24,35 @@ jobs:
2924 build :
3025 runs-on : ubuntu-latest
3126 permissions :
32- # required to create GitHub release
33- contents : write
27+ contents : write # required to create GitHub release
3428 steps :
3529 -
3630 name : Set up Docker Buildx
37- uses : docker/setup-buildx-action@v3
31+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
3832 -
3933 name : Build artifacts
40- uses : docker/bake-action@v6
34+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
4135 with :
4236 targets : artifact-all
4337 provenance : false
4438 -
4539 name : Release
46- uses : docker/bake-action@v6
40+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
4741 with :
4842 targets : release
4943 provenance : false
5044 set : |
5145 *.contexts.artifacts=cwd://${{ env.DESTDIR }}/artifact
5246 -
5347 name : Upload artifacts
54- uses : actions/upload-artifact@v4
48+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5549 with :
5650 name : xgo
5751 path : ${{ env.DESTDIR }}/release/*
5852 if-no-files-found : error
5953 -
6054 name : GitHub Release
61- uses : softprops/action-gh-release@v2
55+ uses : softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
6256 if : startsWith(github.ref, 'refs/tags/v')
6357 with :
6458 draft : true
You can’t perform that action at this time.
0 commit comments