Skip to content

Commit

Permalink
Merge pull request #19 from ItinerisLtd/clickup/86bwanvgj/deploy-if-c…
Browse files Browse the repository at this point in the history
…hanged

feat: deploy only new commits
  • Loading branch information
codepuncher authored Nov 20, 2023
2 parents 0e404a1 + 9b767bc commit 0325b41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/trellis-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
concurrency:
group: "${{ github.workflow }}-${{ github.ref_name }}"
cancel-in-progress: false
if: github.actor != 'kodiakhq[bot]' && github.actor != 'dependabot[bot]'
if: github.sha != vars.LAST_DEPLOY && github.actor != 'kodiakhq[bot]' && github.actor != 'dependabot[bot]'
steps:
- name: Checkout Bedrock
uses: actions/checkout@v3
Expand Down Expand Up @@ -111,3 +111,9 @@ jobs:
env:
# yamllint disable-line rule:line-length
FONTAWESOME_NPM_AUTH_TOKEN: "${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}"

- name: Cache deployed commit hash
run: gh variable set LAST_DEPLOY --body='${{ github.sha }}'
working-directory: bedrock
env:
GITHUB_TOKEN: ${{ secrets.REPO_PAT }}

0 comments on commit 0325b41

Please sign in to comment.