diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 9864567..4664a44 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -64,21 +64,17 @@ jobs: comment: runs-on: ubuntu-latest - needs: - - "check-labels" - - if: always() + needs: + - check-labels + if: always() && needs.check-labels.result == 'failure' steps: - - uses: step-security/workflow-conclusion-action@v3 - name: Checkout - uses: actions/checkout@v1 - + uses: actions/checkout@v5 - name: Comment PR - if: env.WORKFLOW_CONCLUSION == 'failure' - uses: thollander/actions-comment-pull-request@1.0.2 + uses: thollander/actions-comment-pull-request@v3.0.0 with: message: "Please apply one of the following labels to the PR: 'patch', 'minor', 'major'." - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} prepare-release: needs: ["check-labels", "comment"] diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index a3a8d2a..44c078f 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -35,13 +35,15 @@ jobs: - name: Get PR Number id: pr_number - run: echo "::set-output name=nr::$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')" + run: | + NR=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }') + echo "nr=$NR" >> $GITHUB_OUTPUT - name: Set version output id: out run: | - echo "::set-output name=version::$(echo ${VERSION}-PRE-${{ steps.pr_number.outputs.nr }})" - echo "::set-output name=plain-version::$(echo ${VERSION})" + echo "version=${VERSION}-PRE-${{ steps.pr_number.outputs.nr }}" >> $GITHUB_OUTPUT + echo "plain-version=${VERSION}" >> $GITHUB_OUTPUT git-release: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f7c989..097af3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: - name: Set version output id: out - run: echo "::set-output name=version::$(echo ${VERSION})" + run: echo "version=${VERSION}" >> $GITHUB_OUTPUT deploy: name: "Release charts"