Merge pull request #7814 from fidencio/topic/gha-rebase-prs-atop-of-main-for-the-tests

gha: Rebase PR atop of the target branch before testing
This commit is contained in:
Fabiano Fidêncio
2023-09-01 16:26:32 +02:00
committed by GitHub
7 changed files with 13 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ jobs:
popd &>/dev/null popd &>/dev/null
- name: Checkout code to allow hub to communicate with the project - name: Checkout code to allow hub to communicate with the project
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Add issue to issue backlog - name: Add issue to issue backlog
env: env:

View File

@@ -21,7 +21,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Install PR sizing label script - name: Install PR sizing label script
run: | run: |

View File

@@ -25,7 +25,7 @@ jobs:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/ci.yaml uses: ./.github/workflows/ci.yaml
with: with:
commit-hash: ${{ github.event.pull_request.head.sha }} commit-hash: ${{ github.event.pull_request.merge_commit_sha }}
pr-number: ${{ github.event.pull_request.number }} pr-number: ${{ github.event.pull_request.number }}
tag: ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }} tag: ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}
secrets: inherit secrets: inherit

View File

@@ -21,6 +21,6 @@ jobs:
with: with:
go-version: 1.19.3 go-version: 1.19.3
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build utils - name: Build utils
run: ./ci/darwin-test.sh run: ./ci/darwin-test.sh

View File

@@ -22,7 +22,7 @@ jobs:
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
path: ./src/github.com/${{ github.repository }} path: ./src/github.com/${{ github.repository }}

View File

@@ -38,7 +38,9 @@ jobs:
- name: Checkout code to allow hub to communicate with the project - name: Checkout code to allow hub to communicate with the project
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
uses: actions/checkout@v2 uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Move issue to "In progress" - name: Move issue to "In progress"
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}

View File

@@ -36,7 +36,9 @@ jobs:
- name: Checkout code to allow hub to communicate with the project - name: Checkout code to allow hub to communicate with the project
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
uses: actions/checkout@v2 uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Install porting checker script - name: Install porting checker script
run: | run: |