Fix update-version.yml
Signed-off-by: Ujjwal Goyal <importujjwal@gmail.com>
This commit is contained in:
parent
07e3204438
commit
d16cd7e096
|
|
@ -9,8 +9,8 @@ jobs:
|
|||
update-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Update pack version of buildpacks/github-actions/setup-pack/action.yml on new pack release
|
||||
uses: actions/checkout@v2
|
||||
run: |
|
||||
NEW_VERSION = $(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/buildpacks/pack/releases/latest | jq .tag_name -r | cut -c 2-)
|
||||
sed -i -z "s/default: '[0-9]\{1,\}.[0-9]\{1,\}.[0-9]\{1,\}'/default: '$NEW_VERSION'/2" setup-pack/action.yml
|
||||
|
|
@ -23,4 +23,4 @@ jobs:
|
|||
body: Updates default version of setup-pack/action.yml to reflect release changes in buildpacks/pack
|
||||
branch: update-version
|
||||
base: main
|
||||
signoff: true
|
||||
signoff: true
|
||||
Loading…
Reference in New Issue