mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix concurrency: only on PR workflow (#8306)
This commit is contained in:
18
.github/workflows/adf_alpha.yml
vendored
18
.github/workflows/adf_alpha.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: "upstream adf"
|
name: "upstream adf"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
repo_to_update:
|
repo_to_update:
|
||||||
description: Repository to update
|
description: Repository to update
|
||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
options:
|
options:
|
||||||
- TRIGGER_ALPHA_ADF
|
- TRIGGER_ALPHA_ADF
|
||||||
default: TRIGGER_ALPHA_ADF
|
default: TRIGGER_ALPHA_ADF
|
||||||
repo_to_update:
|
repo_to_update:
|
||||||
description: Repository to update
|
description: Repository to update
|
||||||
@@ -27,10 +27,6 @@ on:
|
|||||||
- alfresco-content-app
|
- alfresco-content-app
|
||||||
default: alfresco-applications
|
default: alfresco-applications
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
@@ -80,8 +76,8 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
trigger_adf:
|
trigger_adf:
|
||||||
name: trigger adf
|
name: trigger adf
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -94,7 +90,7 @@ jobs:
|
|||||||
- name: Trigger Alpha ADF child build
|
- name: Trigger Alpha ADF child build
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ contains(github.event.head_commit.message, '[trigger adf]') || inputs.cluster_operation == 'TRIGGER_ALPHA_ADF' || github.event.schedule == '0 12 * * *' }}
|
if: ${{ contains(github.event.head_commit.message, '[trigger adf]') || inputs.cluster_operation == 'TRIGGER_ALPHA_ADF' || github.event.schedule == '0 12 * * *' }}
|
||||||
run: |
|
run: |
|
||||||
npm install github-api
|
npm install github-api
|
||||||
./scripts/travis/update/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $TRAVIS_COMMIT -r ${{ inputs.repo_to_update }}
|
./scripts/travis/update/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $TRAVIS_COMMIT -r ${{ inputs.repo_to_update }}
|
||||||
|
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -16,10 +16,6 @@ on:
|
|||||||
- develop-patch*
|
- develop-patch*
|
||||||
- master-patch*
|
- master-patch*
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BASE_REF: ${{ github.base_ref }}
|
BASE_REF: ${{ github.base_ref }}
|
||||||
HEAD_REF: ${{ github.head_ref }}
|
HEAD_REF: ${{ github.head_ref }}
|
||||||
|
Reference in New Issue
Block a user