Skip to content

Commit

Permalink
.github/workflows: fix generate-catalogs workflows
Browse files Browse the repository at this point in the history
Make sure we are setting the correct working-directory. Otherwise, it
will try to look at the "main" checkout when creating the PR.. And
thus not creating any PRs.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Dec 19, 2023
1 parent 98c5d56 commit 84b4831
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/generate-catalogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v5
working-directory: p
with:
base: p
branch: update-stable-${{ matrix.name }}-${{ matrix.type }}
Expand All @@ -92,7 +93,8 @@ jobs:
# author: ${{ env.GIT_AUTHOR_NAME }} ${{ env.GIT_AUTHOR_EMAIL }}
# body: ${{ steps.pr_body.outputs.content }} # TODO(vdemeester) Write git status from the artifact
- uses: actions/upload-artifact@v4 # We could ignore this completely
working-directory: p
with:
name: ${{ matrix.name }}-${{ matrix.type }}-stable-catalog-artifact
path: stable/
path: .
retention-days: 3 # We don't need to keep them for long
2 changes: 2 additions & 0 deletions .github/workflows/generate-experimental-catalogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v5
working-directory: p
with:
base: p
branch: update-experimental-${{ matrix.name }}-${{ matrix.type }}
Expand All @@ -92,6 +93,7 @@ jobs:
# author: ${{ env.GIT_AUTHOR_NAME }} ${{ env.GIT_AUTHOR_EMAIL }}
# body: ${{ steps.pr_body.outputs.content }} # TODO(vdemeester) Write git status from the artifact
- uses: actions/upload-artifact@v4 # We could ignore this completely
working-directory: p
with:
name: ${{ matrix.name }}-${{ matrix.type }}-experimental-catalog-artifact
path: experimental/
Expand Down

0 comments on commit 84b4831

Please sign in to comment.