diff --git a/.github/workflows/dockerprune.yml b/.github/workflows/dockerprune.yml index 0ede5a8..d932958 100644 --- a/.github/workflows/dockerprune.yml +++ b/.github/workflows/dockerprune.yml @@ -3,7 +3,23 @@ name: DockerHub on: [push, pull_request, workflow_dispatch] jobs: + pre_job: + # continue-on-error: true # Uncomment once integration is finished + runs-on: ubuntu-latest + # Map a step output to a job output + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@v5 + with: + # All of these options are optional, so you can remove them if you are happy with the defaults + concurrent_skipping: 'same_content_newer' + skip_after_successful_duplicate: 'false' + native: + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' name: native runs-on: ubuntu-latest steps: diff --git a/.github/workflows/style_checks.yml b/.github/workflows/style_checks.yml index 300e3bb..d56488c 100644 --- a/.github/workflows/style_checks.yml +++ b/.github/workflows/style_checks.yml @@ -3,7 +3,23 @@ name: Style on: [push, pull_request] jobs: + pre_job: + # continue-on-error: true # Uncomment once integration is finished + runs-on: ubuntu-latest + # Map a step output to a job output + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@v5 + with: + # All of these options are optional, so you can remove them if you are happy with the defaults + concurrent_skipping: 'same_content_newer' + skip_after_successful_duplicate: 'false' + check_clippy: + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' name: Clippy runs-on: ubuntu-22.04 steps: @@ -21,6 +37,8 @@ jobs: run: cargo +nightly clippy --workspace --all-targets --all-features check_fmt: + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' name: Rust-fmt runs-on: ubuntu-latest steps: @@ -34,6 +52,8 @@ jobs: cargo +nightly fmt --all -- --check check_lua: + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' name: Luacheck runs-on: ubuntu-latest steps: