Skip to content

Commit

Permalink
chore: release triggers...
Browse files Browse the repository at this point in the history
  • Loading branch information
kcirtapfromspace committed May 8, 2023
1 parent 35e6ce5 commit bee1a30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Deploy
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
# if: github.event_name == 'pull_request' && github.event.pull_request.merged == true && contains(github.event.pull_request.title, ':\ release')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') && contains(github.event.head_commit.message, 'chore(main): release')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') && (find(github.event.head_commit.message, '^chore\\(main\\): release \\d+\\.\\d+\\.\\d+') >= 0)
run: |
hugo deploy --maxDeletes -1 --invalidateCDN
working-directory: ./src
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- name: Terraform Apply
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
# if: github.event_name == 'pull_request' && github.event.pull_request.merged == true && contains(github.event.pull_request.title, ':\ release')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') && contains(github.event.head_commit.message, 'chore(main): release')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') && (find(github.event.head_commit.message, '^chore\\(main\\): release \\d+\\.\\d+\\.\\d+') >= 0)
id: apply
run: terraform plan -no-color
continue-on-error: true
Expand Down

0 comments on commit bee1a30

Please sign in to comment.