Skip to content

Commit

Permalink
fix fogg ci pr (#36)
Browse files Browse the repository at this point in the history
* fix: switching fogg gh ci to pull_request broke commits

Ref: https://github.com/EndBug/add-and-commit#working-with-prs

* fix: Fix fogg ci pr fix

Ensure github workflow interpolation doesn't break gotemplates
  • Loading branch information
vincenthsh authored Nov 18, 2022
1 parent 7059854 commit c8bbe0a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/templates/.github/workflows/fogg_ci.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
repository: {{`${{ github.event.pull_request.head.repo.full_name }}`}}
ref: {{`${{ github.event.pull_request.head.ref }}`}}
- name: Cache Fogg
id: cache-fogg
uses: actions/cache@v3
Expand Down Expand Up @@ -44,8 +44,8 @@ jobs:
allChanges: {{`${{ steps.changedDirs.outputs.allChanges }}`}}
steps:
- uses: actions/checkout@v3
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
repository: {{`${{ github.event.pull_request.head.repo.full_name }}`}}
ref: {{`${{ github.event.pull_request.head.ref }}`}}
- uses: dorny/[email protected]
id: filter
with:
Expand Down Expand Up @@ -81,8 +81,8 @@ jobs:
- uses: actions/checkout@v3
with:
token: {{`${{ secrets.GITHUB_TOKEN }}`}}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
repository: {{`${{ github.event.pull_request.head.repo.full_name }}`}}
ref: {{`${{ github.event.pull_request.head.ref }}`}}
- name: fix terraform docs
uses: terraform-docs/[email protected]
if: contains(matrix.tfmodule, 'modules') # only need to make docs on the modules
Expand Down
6 changes: 6 additions & 0 deletions testdata/github_actions/.github/workflows/fogg_ci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions testdata/v2_full_yaml/.github/workflows/fogg_ci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c8bbe0a

Please sign in to comment.