diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 12a6fa643..4f076e440 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,6 +6,10 @@ on: - 'main' - 'dev' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test-build: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/build_stage.yaml b/.github/workflows/build_stage.yaml index c13ad4a33..7b871644c 100644 --- a/.github/workflows/build_stage.yaml +++ b/.github/workflows/build_stage.yaml @@ -6,6 +6,9 @@ on: pull_request: types: [labeled] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: CSC_FOR_PULL_REQUEST: true diff --git a/.github/workflows/ci_lint.yaml b/.github/workflows/ci_lint.yaml index b8a973fbf..05066c81c 100644 --- a/.github/workflows/ci_lint.yaml +++ b/.github/workflows/ci_lint.yaml @@ -3,6 +3,10 @@ name: Lint code on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lint: runs-on: ubuntu-latest diff --git a/.github/workflows/deploy_storybook.yml b/.github/workflows/deploy_storybook.yml index 72768918b..20652279f 100644 --- a/.github/workflows/deploy_storybook.yml +++ b/.github/workflows/deploy_storybook.yml @@ -1,16 +1,20 @@ name: Deploy storybook to bucket - on: push: branches: - dev +concurrency: + group: "storybook-deploy" + cancel-in-progress: false + env: - S3_BUCKET: s3://spektr-storybook + S3_BUCKET: s3://storybook + S3_REGION: pl-waw jobs: deploy-to-bucket: - runs-on: ubuntu-latest + runs-on: macos-14 steps: - name: Checkout @@ -26,7 +30,7 @@ jobs: - name: 🤌 Upload to s3 uses: ./.github/workflows/upload-to-s3 with: - s3_region: nl-ams + s3_region: ${{ env.S3_REGION }} s3_access_key: ${{ secrets.S3_ACCESS_KEY }} s3_secret_key: ${{ secrets.S3_SECRET_KEY }} s3_bucket: ${{ env.S3_BUCKET }} diff --git a/.github/workflows/global_coverage_report.yml b/.github/workflows/global_coverage_report.yml index 2a57b1ac9..70ca7eed2 100644 --- a/.github/workflows/global_coverage_report.yml +++ b/.github/workflows/global_coverage_report.yml @@ -10,6 +10,10 @@ on: - 'scripts/**' - 'tests/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: JEST_COVERAGE_AUTH: ${{ secrets.PAT_GIST_TOKEN }} GIST_ID: 77132f25d05c7e9264cd410aef162a7e diff --git a/.github/workflows/integration_test_runner.yaml b/.github/workflows/integration_test_runner.yaml index 36a39229d..1e582c18f 100644 --- a/.github/workflows/integration_test_runner.yaml +++ b/.github/workflows/integration_test_runner.yaml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: integration_test_run: runs-on: ubuntu-latest diff --git a/.github/workflows/system_tests.yml b/.github/workflows/system_tests.yml index 746679ab3..ab6f651f6 100644 --- a/.github/workflows/system_tests.yml +++ b/.github/workflows/system_tests.yml @@ -11,6 +11,10 @@ on: paths: - 'tests/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CI: true diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml index 03c898211..0a64ecbe7 100644 --- a/.github/workflows/unit_tests.yaml +++ b/.github/workflows/unit_tests.yaml @@ -3,6 +3,10 @@ name: Run unit tests on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: pull-requests: write checks: write diff --git a/.github/workflows/update_chains_file.yaml b/.github/workflows/update_chains_file.yaml index d88a85c53..153ebeeb1 100644 --- a/.github/workflows/update_chains_file.yaml +++ b/.github/workflows/update_chains_file.yaml @@ -11,6 +11,10 @@ on: schedule: - cron: '0 8 * * 1' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: update-files: runs-on: ubuntu-latest diff --git a/.github/workflows/upload-to-s3/action.yml b/.github/workflows/upload-to-s3/action.yml index e6adc762e..1f81c0c52 100644 --- a/.github/workflows/upload-to-s3/action.yml +++ b/.github/workflows/upload-to-s3/action.yml @@ -32,11 +32,6 @@ runs: shell: bash - name: Interact with object storage - run: | - base_directory="${{ inputs.source }}" - find "$base_directory" -type f | while read -r file; do - relative_path="${file#$base_directory/}" # Extract the relative path - s3cmd sync "$file" "${{ inputs.s3_bucket }}/${relative_path}" --acl-public - done + run: s3cmd sync "${{ inputs.source }}/" "${{ inputs.s3_bucket }}/" --acl-public shell: bash