diff --git a/.github/workflows/release_promote-lts.yml b/.github/workflows/release_promote-lts.yml index d27ed46d66c..abc7b0b1d59 100644 --- a/.github/workflows/release_promote-lts.yml +++ b/.github/workflows/release_promote-lts.yml @@ -1,4 +1,4 @@ -name: Release > Promote LTS +name: 0. Release > Promote LTS on: workflow_dispatch: diff --git a/.github/workflows/release_publish-beta.yml b/.github/workflows/release_publish-beta.yml index ec69727efd8..b8ee0e8a2d5 100644 --- a/.github/workflows/release_publish-beta.yml +++ b/.github/workflows/release_publish-beta.yml @@ -1,4 +1,4 @@ -name: Release > Beta +name: 0. Release > Beta on: workflow_dispatch: @@ -46,10 +46,6 @@ jobs: run: | echo "Releases may only be performed from the main branch." exit 1 - - name: Make sure git user is setup - run: | - git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }} - git config --local user.name ${{ secrets.GH_DEPLOY_NAME }} - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-tags: true @@ -58,6 +54,10 @@ jobs: fetch-depth: 3 ref: beta - run: git fetch origin main --depth=1 + - name: Make sure git user is setup + run: | + git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }} + git config --local user.name ${{ secrets.GH_DEPLOY_NAME }} - name: Get last beta version from package.json if: github.event.inputs.kind == 'mirror' uses: sergeysova/jq-action@v2 diff --git a/.github/workflows/release_publish-canary.yml b/.github/workflows/release_publish-canary.yml index 124d3e4f0e5..51556a314ce 100644 --- a/.github/workflows/release_publish-canary.yml +++ b/.github/workflows/release_publish-canary.yml @@ -1,4 +1,4 @@ -name: Release > Canary +name: 0. Release > Canary on: workflow_dispatch: diff --git a/.github/workflows/release_publish-lts.yml b/.github/workflows/release_publish-lts.yml index a0a100c6a5a..02d87578b2f 100644 --- a/.github/workflows/release_publish-lts.yml +++ b/.github/workflows/release_publish-lts.yml @@ -1,4 +1,4 @@ -name: Release > LTS +name: 0. Release > LTS on: workflow_dispatch: @@ -34,10 +34,6 @@ jobs: run: | echo "Releases may only be performed from the main branch." exit 1 - - name: Make sure git user is setup - run: | - git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }} - git config --local user.name ${{ secrets.GH_DEPLOY_NAME }} - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-tags: true @@ -45,6 +41,10 @@ jobs: token: ${{ secrets.GH_DEPLOY_TOKEN }} fetch-depth: 3 ref: ${{ github.event.inputs.source-branch }} + - name: Make sure git user is setup + run: | + git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }} + git config --local user.name ${{ secrets.GH_DEPLOY_NAME }} - uses: ./.github/actions/setup with: install: true diff --git a/.github/workflows/release_publish-stable.yml b/.github/workflows/release_publish-stable.yml index 0d1622058f7..66ccc70aaad 100644 --- a/.github/workflows/release_publish-stable.yml +++ b/.github/workflows/release_publish-stable.yml @@ -1,4 +1,4 @@ -name: Release > Stable +name: 0. Release > Stable on: workflow_dispatch: @@ -58,10 +58,6 @@ jobs: run: | echo "Releases may only be performed from the main branch." exit 1 - - name: Make sure git user is setup - run: | - git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }} - git config --local user.name ${{ secrets.GH_DEPLOY_NAME }} - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-tags: true @@ -71,6 +67,10 @@ jobs: ref: release ## Ensure we have a copy of the source branch - run: git fetch origin ${{ github.event.inputs.source-branch }} --depth=1 + - name: Make sure git user is setup + run: | + git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }} + git config --local user.name ${{ secrets.GH_DEPLOY_NAME }} - name: Reset the Release Branch if: github.event.inputs.source-branch != 'release' && (github.event.inputs.is-cycle-start == 'true' || github.event.inputs.from-version != null) run: git reset --hard origin/${{ github.event.inputs.source-branch }} && git push origin release -f