Skip to content

Commit

Permalink
Make CI run checkout PR for backlogger_preview
Browse files Browse the repository at this point in the history
Switch trigger to pull_request_target and adjust the checkout actions
to run against the latest code in the PR.
Although it works for backlogger, it might impact when the workflow
run in another repository.

https://progress.opensuse.org/issues/158236

Signed-off-by: ybonatakis <[email protected]>
  • Loading branch information
b10n1k committed Apr 25, 2024
1 parent 38d6dfc commit 9a8e468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: ./
with:
config: queries.yaml
ref: ${{ github.event.pull_request.head.sha }}
- uses: rossjrw/pr-preview-action@v1
with:
source-dir: gh-pages
1 change: 1 addition & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ runs:
with:
repository: openSUSE/backlogger
path: backlogger
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v5
with:
python-version: 3.12
Expand Down

0 comments on commit 9a8e468

Please sign in to comment.