Skip to content

Commit

Permalink
Merge pull request #348 from the-hideout/update-branch-deploy
Browse files Browse the repository at this point in the history
update branch deploy to use `sha` instead of `ref`
  • Loading branch information
GrantBirki authored Dec 3, 2024
2 parents 60a11ca + 314af8a commit 11d4cbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/branch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:
deployments: write
contents: write
checks: read
statuses: read

jobs:
deploy:
Expand All @@ -18,7 +19,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: github/branch-deploy@v9.9.1
- uses: github/branch-deploy@v9
id: branch-deploy
with:
admins: the-hideout/core-contributors
Expand All @@ -31,7 +32,7 @@ jobs:
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.ref }}
ref: ${{ steps.branch-deploy.outputs.sha }}

- name: setup node
if: ${{ steps.branch-deploy.outputs.continue == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
# https://github.com/github/branch-deploy/blob/d3c24bd92505e623615b75ffdfac5ed5259adbdb/docs/merge-commit-strategy.md
- name: deployment check
uses: github/branch-deploy@v9.9.1
uses: github/branch-deploy@v9
id: deployment-check
with:
merge_deploy_mode: "true"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unlock-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: unlock on merge
uses: github/branch-deploy@v9.9.1
uses: github/branch-deploy@v9
id: unlock-on-merge
with:
unlock_on_merge_mode: "true" # <-- indicates that this is the "Unlock on Merge Mode" workflow
Expand Down

0 comments on commit 11d4cbc

Please sign in to comment.