diff --git a/.github/workflows/next-branch.yml b/.github/workflows/release-next-branch.yml similarity index 51% rename from .github/workflows/next-branch.yml rename to .github/workflows/release-next-branch.yml index af62a6dae2b7..b5bacb8693d2 100644 --- a/.github/workflows/next-branch.yml +++ b/.github/workflows/release-next-branch.yml @@ -1,4 +1,4 @@ -name: next-branch +name: release-next-branch on: schedule: @@ -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