Skip to content

Commit

Permalink
ci: checkout PR branch only for PRs
Browse files Browse the repository at this point in the history
When running the job on push, the checkout done by actions/checkout does
not need to be tweaked for ansible-community/ansible-test-gh-action.
ptoscano committed Aug 24, 2023
1 parent 4d1c253 commit 83c7d52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
@@ -84,6 +84,7 @@ jobs:
# Show branch information
git -C ansible_collections/redhat/insights branch -vv
if: github.event_name == 'pull_request'

- name: Get git version
id: git-version

0 comments on commit 83c7d52

Please sign in to comment.