1
0
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:
Alexey Matvievsky
2022-09-21 11:08:15 +04:00
committed by GitHub
parent e61d358306
commit 2ac8ead02c
2 changed files with 28 additions and 0 deletions

View File

@@ -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

View File

@@ -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: |