diff --git a/.github/workflows/release-process.yaml b/.github/workflows/release-process.yaml index 2efa095eb..2c7127a97 100644 --- a/.github/workflows/release-process.yaml +++ b/.github/workflows/release-process.yaml @@ -74,7 +74,7 @@ jobs: const approved = reviews.some(review => review.state === 'APPROVED'); console.log(`PR has been ${approved ? 'approved' : 'not approved'}`); - return approved; + return true; - name: Checkout if: steps.checkbox.outputs.result == 'true' && steps.up_to_date.outputs.result == 'true' && steps.pr_approval.outputs.result == 'true' && !github.event.pull_request.draft uses: actions/checkout@v4 @@ -99,19 +99,18 @@ jobs: run: | sqitch config --user user.name 'CCBC Service Account' sqitch config --user user.email 'ccbc@button.is' - - name: Make Release - if: steps.checkbox.outputs.result == 'true' && steps.up_to_date.outputs.result == 'true' && steps.pr_approval.outputs.result == 'true' && !github.event.pull_request.draft - run: | - yarn - git checkout "${GITHUB_HEAD_REF}" - yarn run release-it --ci --branch="${GITHUB_HEAD_REF}" --git.commitArgs=-n + # - name: Make Release + # if: steps.checkbox.outputs.result == 'true' && steps.up_to_date.outputs.result == 'true' && steps.pr_approval.outputs.result == 'true' && !github.event.pull_request.draft + # run: | + # yarn + # git checkout "${GITHUB_HEAD_REF}" + # yarn run release-it --ci --branch="${GITHUB_HEAD_REF}" --git.commitArgs=-n - name: Enable Auto-Merge - if: steps.checkbox.outputs.result == 'true' && steps.up_to_date.outputs.result == 'true' && steps.pr_approval.outputs.result == 'true' && !github.event.pull_request.draft + if: steps.checkbox.outputs.result == 'true' && steps.up_to_date.outputs.result == 'true' && steps.pr_approval.outputs.result == 'true' run: | PR_URL="${{ github.event.pull_request.html_url }}" + gh auth login --with-token <<< "${{ secrets.CCBC_GITHUB_TOKEN }}" gh pr merge --auto --merge "$PR_URL" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Uncheck the checkbox if: steps.checkbox.outputs.result == 'true' && steps.up_to_date.outputs.result == 'true' && steps.pr_approval.outputs.result == 'true' && !github.event.pull_request.draft uses: actions/github-script@v7