Skip to content

Commit

Permalink
ci: build on all branches, but release only on master
Browse files Browse the repository at this point in the history
  • Loading branch information
darkstar42 committed Aug 9, 2021
1 parent 8c584b1 commit 8c2946c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: terraform
on:
push:
branches:
- master
- '*'

jobs:
terraform:
Expand Down Expand Up @@ -52,12 +52,14 @@ jobs:
TFE_TOKEN: ${{ secrets.TFE_TOKEN_TESTING }}

- name: Bump version and push tag
if: github.ref == 'refs/heads/master'
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a GitHub release
if: github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
Expand Down

0 comments on commit 8c2946c

Please sign in to comment.