From 8ddefb213fe8b12a6637462dcee09d16d932902d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 12 Jun 2023 14:19:25 +0200 Subject: [PATCH] ci: replace status with state for auto-deployment Signed-off-by: Jens Langhammer --- .github/workflows/release-next-branch.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-next-branch.yml b/.github/workflows/release-next-branch.yml index b48cd8488..babbe0a81 100644 --- a/.github/workflows/release-next-branch.yml +++ b/.github/workflows/release-next-branch.yml @@ -16,10 +16,10 @@ jobs: - uses: actions/checkout@v3 with: ref: main - - id: main-status + - id: main-state run: | - status=$(curl -fsSL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/${{ github.repository }}/commits/HEAD/status" | jq -r '.status') - echo "status=${status}" >> $GITHUB_OUTPUT - - if: ${{ steps.main-status.outputs.status == 'success' }} + state=$(curl -fsSL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/${{ github.repository }}/commits/HEAD/state" | jq -r '.state') + echo "state=${state}" >> $GITHUB_OUTPUT + - if: ${{ steps.main-state.outputs.state == 'success' }} run: | git push origin next --force