ci: replace status with state for auto-deployment

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-06-12 14:19:25 +02:00
parent e679066fca
commit 8ddefb213f
No known key found for this signature in database

View file

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