Skip to content

Update workflows to use "concurrency" GHA functionality to skip redundant workflow runs #247

Update workflows to use "concurrency" GHA functionality to skip redundant workflow runs

Update workflows to use "concurrency" GHA functionality to skip redundant workflow runs #247

Workflow file for this run

name: UCC Gen Validation
on: [pull_request]
permissions:
contents: read
# We don't want to cancel any redundant runs on main so we use run_id when head_ref is
# not available
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- name: Install dependencies
run: |
make dev-install-dependencies-pack
make dev-install-dependencies-pack-sudo
make dev-install-dependencies-for-development
- name: Export current snapshot of app
run: echo "SDLAPP_VERSION_CURRENT_SNAPSHOT=$(jq -r '.meta.version' globalConfig.json)" >> $GITHUB_ENV
- name: Validate release
run: |
scripts/pack.sh \
--version "${{ env.SDLAPP_VERSION_CURRENT_SNAPSHOT }}" \
--input TA_dataset \
--output output \
--release release