diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml deleted file mode 100644 index 3d18e2d52b1..00000000000 --- a/.github/workflows/debug.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: DEBUG checkout new branch - -on: - workflow_dispatch: - inputs: - version_number: - description: "Version number of the Parabol image to process" - required: true - -jobs: - make-branch: - runs-on: ubuntu-latest - permissions: - contents: "write" - id-token: "write" - pull-requests: "write" - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Create release branch - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git checkout -b "release/${{ github.event.inputs.version_number }}" - git push --set-upstream origin release/vX.Y.Z diff --git a/.github/workflows/release-to-staging.yml b/.github/workflows/release-to-staging.yml index ed371df169c..fb7cb442f64 100644 --- a/.github/workflows/release-to-staging.yml +++ b/.github/workflows/release-to-staging.yml @@ -98,10 +98,14 @@ jobs: CHANGES=$(perl -0777ne 'print "$1\n" and exit if m/\n##\s[^\n]*\n+(.*?\n)##?\s|$/gs;' CHANGELOG.md) echo -e "${BACKLINK}\n\n${TEMPLATE}\n\n\n${CHANGES}" > BODY export BODY=$(cat BODY) + git config user.name github-actions + git config user.email github-actions@github.com + git checkout -b "release/v${{ env.ACTION_VERSION }}" + git push --set-upstream origin "release/v${{ env.ACTION_VERSION }}" gh pr create \ --assignee ${{ github.actor }} \ --base production \ - --head v${{ env.ACTION_VERSION }} \ + --head release/v${{ env.ACTION_VERSION }} \ --title "chore(release): Test v${{ env.ACTION_VERSION }}" \ --body "$BODY" - name: Poll Staging Release