fix: Use su instead of sudo to run jobs as the user #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
jobs: | |
check-conventional-commits: | |
uses: armakuni/github-actions/.github/workflows/check-conventional-commits.yml@v0.8.1 | |
generate-terraform-docs: | |
if: github.ref == 'refs/heads/main' | |
uses: armakuni/github-actions/.github/workflows/generate-terraform-docs.yml@v0.8.1 | |
with: | |
output-file: README.md | |
# This artifact is referenced by the cog.toml | |
artifact-name: terraform-docs | |
create-release: | |
needs: | |
- check-conventional-commits | |
- generate-terraform-docs | |
if: github.ref == 'refs/heads/main' | |
uses: armakuni/github-actions/.github/workflows/tag-and-release.yml@v0.8.1 | |
secrets: inherit | |
with: | |
download-artifacts: true |