You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
Integration tests workflow quick fix 3 (#4033)
* Integration tests fix #2 * Now on event GHA job should look at the pull request branch * fix Co-authored-by: Alexey Matvievsky <alexey.matvievsky@sap.com>
This commit is contained in:
committed by
GitHub
parent
e61d358306
commit
2ac8ead02c
14
.github/workflows/consumer-tests-pr.yml
vendored
14
.github/workflows/consumer-tests-pr.yml
vendored
@@ -20,7 +20,21 @@ jobs:
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get pull request URL
|
||||
id: pull_request
|
||||
run: |
|
||||
echo "::set-output name=pull_request::$(curl ${{ github.event.comment.issue_url }} |
|
||||
jq '.pull_request.url' |
|
||||
sed 's/\"//g')"
|
||||
- name: Get branch name
|
||||
id: branch_name
|
||||
run: |
|
||||
echo "::set-output name=branch_name::$(curl ${{ steps.pull_request.outputs.pull_request }} |
|
||||
jq '.head.ref' |
|
||||
sed 's/\"//g')"
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ steps.branch_name.outputs.branch_name }}
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
|
14
.github/workflows/integration-tests-pr.yml
vendored
14
.github/workflows/integration-tests-pr.yml
vendored
@@ -29,7 +29,21 @@ jobs:
|
||||
sha: ${{ steps.sha.outputs.sha }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get pull request URL
|
||||
id: pull_request
|
||||
run: |
|
||||
echo "::set-output name=pull_request::$(curl ${{ github.event.comment.issue_url }} |
|
||||
jq '.pull_request.url' |
|
||||
sed 's/\"//g')"
|
||||
- name: Get branch name
|
||||
id: branch_name
|
||||
run: |
|
||||
echo "::set-output name=branch_name::$(curl ${{ steps.pull_request.outputs.pull_request }} |
|
||||
jq '.head.ref' |
|
||||
sed 's/\"//g')"
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ steps.branch_name.outputs.branch_name }}
|
||||
- name: Get commit SHA
|
||||
id: sha
|
||||
run: |
|
||||
|
Reference in New Issue
Block a user