-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (28 loc) · 1.05 KB
/
ipxe_version.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update iPXE version
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get latest version
run: |
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')"
id: version
- name: Update version string
run: |
sed -Ei 's/(IPXE_REF=)[0-9a-f]{40}/\1${{ steps.version.outputs.sha }}/' .goreleaser.yaml
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: ':arrow_up: Bump ipxe/ipxe'
body: 'https://github.com/ipxe/ipxe/commits/${{ steps.version.outputs.sha }}'
commit-message: ':arrow_up: Bump ipxe/ipxe to ${{ steps.version.outputs.sha }}'
labels: dependencies
branch: ipxe-version
token: ${{ secrets.WORKFLOW_PAT }} # needed to modify workflow files
delete-branch: true