From a02a9ed3c577756e87b08d46083b9de5ac24d064 Mon Sep 17 00:00:00 2001 From: Alex Godbehere Date: Thu, 30 Mar 2023 12:17:07 +0100 Subject: [PATCH] Fix pipeline --- .github/workflows/docker-publish.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 365e5e1..4a0d67c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -11,17 +11,10 @@ on: - 'v[0-9]+.[0-9]+.[0-9]+' jobs: - build: + update-version: runs-on: ubuntu-latest - permissions: - contents: read - packages: write - id-token: write - pull-requests: write - steps: - uses: actions/checkout@v3 - - name: Update version in package.json run: | CURRENT_TAG=${GITHUB_REF#refs/tags/} @@ -30,7 +23,6 @@ jobs: echo "Updating version to: $VERSION" jq ".version = \"$VERSION\"" package.json > package.json.tmp mv package.json.tmp package.json - - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: @@ -40,7 +32,16 @@ jobs: body: Update the version of `package.json` as part of release process delete-branch: true base: main - token: ${{ secrets.GITHUB_TOKEN }} + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + id-token: write + pull-requests: write + + steps: + - uses: actions/checkout@v3 # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer