Skip to content

Commit

Permalink
use environments, use non-deprecated GHA output
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu committed Jun 12, 2023
1 parent c1bb342 commit dd37b0d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: next-branch
name: release-next-branch

on:
schedule:
Expand All @@ -8,13 +8,15 @@ on:
jobs:
update-next:
runs-on: ubuntu-latest
environment: internal-production
steps:
- uses: actions/checkout@v3
with:
ref: main
- id: main-status
run: |
echo "::set-output name=status::$(curl -fsSL -o head_status.json -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token}}" "https://api.github.com/repos/${{ github.repository }}/commits/HEAD/status" | jq -r '.state')"
status=$(curl -fsSL -o head_status.json -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' }}
run: |
git push origin next --force

0 comments on commit dd37b0d

Please sign in to comment.