File tree Expand file tree Collapse file tree 1 file changed +8
-22
lines changed
Expand file tree Collapse file tree 1 file changed +8
-22
lines changed Original file line number Diff line number Diff line change 66 workflow_dispatch :
77
88jobs :
9- get -version :
9+ update -version :
1010 runs-on : ubuntu-latest
11- outputs :
12- sha : ${{ steps.version.outputs.sha }}
13- sha-short : ${{ steps.version.outputs.sha-short }}
1411 steps :
15- - name : Checkout iPXE from master
12+ - name : Checkout
1613 uses : actions/checkout@v3
17- with :
18- repository : ipxe/ipxe
1914
20- - name : Get version
15+ - name : Get latest version
2116 run : |
22- echo "::set-output name=full::$(git rev-parse HEAD)"
23- echo "::set-output name=short::$(git rev-parse --short HEAD)"
17+ echo "::set-output name=sha::$(curl -u "u:${{ github.token }}" https://api.github.com/repos/ipxe/ipxe/git/ref/heads/master | jq -r '.object.sha')"
2418 id : version
2519
26- update-version :
27- runs-on : ubuntu-latest
28- needs :
29- - get-version
30- steps :
31- - name : Checkout
32- uses : actions/checkout@v3
33-
3420 - name : Update version string
3521 run : |
36- sed -Ei 's/(IPXE_REF: )[0-9a-f]{40}/\1${{ needs.get- version.outputs.sha }}/' .github/workflows/ipxe_build.yaml
22+ sed -Ei 's/(IPXE_REF: )[0-9a-f]{40}/\1${{ steps. version.outputs.sha }}/' .github/workflows/ipxe_build.yaml
3723
3824 - name : Check dirty status
3925 id : dirty
4935 if : steps.dirty.outputs.dirty == 'true'
5036 uses : peter-evans/create-pull-request@v4
5137 with :
52- title : ' :arrow_up: Bump ipxe/ipxe to ${{ needs.get-version.outputs.sha-short }} '
53- body : ' https://github.com/ipxe/ipxe/commits/${{ needs.get- version.outputs.sha }}'
54- commit-message : ' :arrow_up: Bump ipxe/ipxe to ${{ needs.get- version.outputs.sha-short }}'
38+ title : ' :arrow_up: Bump ipxe/ipxe'
39+ body : ' https://github.com/ipxe/ipxe/commits/${{ steps. version.outputs.sha }}'
40+ commit-message : ' :arrow_up: Bump ipxe/ipxe to ${{ steps. version.outputs.sha }}'
5541 labels : dependencies
5642 branch : ipxe-version
5743 delete-branch : true
You can’t perform that action at this time.
0 commit comments