diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ab2a0991f4..c5768df803 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,7 +10,7 @@ jobs: deploy-to-npm-branch: name: Deploy to `npm` branch needs: ci - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/17.x.x' permissions: contents: write # for actions/checkout and to push branch uses: ./.github/workflows/deploy-artifact-as-branch.yml @@ -18,12 +18,12 @@ jobs: environment: npm-branch artifact_name: npmDist target_branch: npm - commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'npm' branch" + commit_message: "Deploy ${{ github.sha }} to 'npm' branch" deploy-to-deno-branch: name: Deploy to `deno` branch needs: ci - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/17.x.x' permissions: contents: write # for actions/checkout and to push branch uses: ./.github/workflows/deploy-artifact-as-branch.yml @@ -31,4 +31,4 @@ jobs: environment: deno-branch artifact_name: denoDist target_branch: deno - commit_message: "Deploy ${{github.event.workflow_run.head_sha}} to 'deno' branch" + commit_message: "Deploy ${{ github.sha }} to 'deno' branch"