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 - uses: actions/checkout@v3
with: with:
ref: main ref: main
- id: main-status - id: main-state
run: | 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') 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 "status=${status}" >> $GITHUB_OUTPUT echo "state=${state}" >> $GITHUB_OUTPUT
- if: ${{ steps.main-status.outputs.status == 'success' }} - if: ${{ steps.main-state.outputs.state == 'success' }}
run: | run: |
git push origin next --force git push origin next --force