Skip to content

Commit 0942c3f

Browse files
Merge pull request #448 from puppetlabs/CAT-1208_fixCI
CAT-1208 : Fix CI to run workflow againt PR branch
2 parents f051c77 + c7c7bb3 commit 0942c3f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
2222

2323
steps:
2424

25-
- name: Checkout Source
25+
- name: Checkout
2626
uses: actions/checkout@v3
27+
with:
28+
ref: ${{ github.event.pull_request.head.sha }}
2729
if: ${{ github.repository_owner == 'puppetlabs' }}
2830

2931
- name: Activate Ruby 2.7
@@ -61,8 +63,10 @@ jobs:
6163
FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main'
6264

6365
steps:
64-
- name: Checkout Source
66+
- name: Checkout
6567
uses: actions/checkout@v3
68+
with:
69+
ref: ${{ github.event.pull_request.head.sha }}
6670

6771
- name: Activate Ruby 2.7
6872
uses: ruby/setup-ruby@v1

.github/workflows/nightly.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121

2222
steps:
2323

24-
- name: Checkout Source
24+
- name: Checkout
2525
uses: actions/checkout@v3
26+
with:
27+
ref: ${{ github.event.pull_request.head.sha }}
2628
if: ${{ github.repository_owner == 'puppetlabs' }}
2729

2830
- name: Activate Ruby 2.7
@@ -60,8 +62,10 @@ jobs:
6062
FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main'
6163

6264
steps:
63-
- name: Checkout Source
65+
- name: Checkout
6466
uses: actions/checkout@v3
67+
with:
68+
ref: ${{ github.event.pull_request.head.sha }}
6569

6670
- name: Activate Ruby 2.7
6771
uses: ruby/setup-ruby@v1

0 commit comments

Comments
 (0)