Fix update-version.yml

Signed-off-by: Ujjwal Goyal <importujjwal@gmail.com>
This commit is contained in:
Ujjwal Goyal 2021-08-25 23:36:04 +05:30
parent 07e3204438
commit d16cd7e096
1 changed files with 2 additions and 2 deletions

View File

@ -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