fix(ci): only run the full sync test on mergify queue PRs (#3773)
* fix(ci): only run the full sync test on mergify queue PRs * fix inconsistent indenting and syntax * Update .github/workflows/test-full-sync.yml Co-authored-by: Gustavo Valverde <gustavo@iterativo.do>
This commit is contained in:
parent
886a4f585b
commit
c724c354d7
|
|
@ -5,7 +5,7 @@ on:
|
||||||
inputs:
|
inputs:
|
||||||
network:
|
network:
|
||||||
default: 'Mainnet'
|
default: 'Mainnet'
|
||||||
pull_request_review:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -21,7 +21,6 @@ on:
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/**'
|
- 'docker/**'
|
||||||
- '.github/workflows/test-full-sync.yml'
|
- '.github/workflows/test-full-sync.yml'
|
||||||
types: [submitted]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_INCREMENTAL: '1'
|
CARGO_INCREMENTAL: '1'
|
||||||
|
|
@ -37,6 +36,9 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
# only run on Mergify head branches:
|
||||||
|
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-based-on-the-head-or-base-branch-of-a-pull-request-1
|
||||||
|
if: startsWith(github.head_ref, 'mergify/merge-queue/')
|
||||||
name: Build images
|
name: Build images
|
||||||
timeout-minutes: 210
|
timeout-minutes: 210
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -48,7 +50,7 @@ jobs:
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4
|
uses: rlespinasse/github-slug-action@v4
|
||||||
|
|
||||||
# Automatic tag management and OCI Image Format Specification for labels
|
# Automatic tag management and OCI Image Format Specification for labels
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3.6.2
|
uses: docker/metadata-action@v3.6.2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue