We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ef315 commit a894767Copy full SHA for a894767
.github/workflows/jira-validator.yml
@@ -13,15 +13,12 @@ jobs:
13
14
- name: Prep
15
run: |
16
- # Checkout branch
17
- git checkout -q ${{ github.event.pull_request.head.ref }}
18
-
19
- # Set variables
20
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
21
22
- # Write BASE_BRANCH to GITHUB_ENV so commit checker can use
23
- echo "BASE_BRANCH=$BASE_BRANCH" | tee -a $GITHUB_ENV
+ HEAD_REPO=${{ github.event.pull_request.head.repo.clone_url }}
+ HEAD_REF=${{ github.event.pull_request.head.ref }}
24
+ git fetch --no-tags "$HEAD_REPO" "$HEAD_REF":pr_branch
+ echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
25
- name: Jira Commit Checker
26
id: jira_commit_checker
27
uses: couchbaselabs/ActionJiraCommitValidate@master
0 commit comments