chore: remove skip-duplicate and skip-check jobs from workflows (#116)

This commit is contained in:
安正超
2025-07-08 23:55:21 +08:00
committed by GitHub
parent 8378e308e0
commit 5f0b9a5fa8
2 changed files with 12 additions and 50 deletions
+4 -23
View File
@@ -62,28 +62,9 @@ env:
REGISTRY_GHCR: ghcr.io/${{ github.repository }}
jobs:
# First layer: GitHub Actions level optimization (handling duplicates and concurrency)
skip-duplicate:
name: Skip Duplicate Actions
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- name: Skip duplicate actions
id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: "same_content_newer"
cancel_others: true
paths_ignore: '["*.md", ".github/**", "docs/**", "deploy/**", "scripts/dev_*.sh"]'
# Never skip release events and tag pushes
do_not_skip: '["release", "push"]'
# Check if we should build
build-check:
name: Build Check
needs: skip-duplicate
if: needs.skip-duplicate.outputs.should_skip != 'true'
runs-on: ubuntu-latest
outputs:
should_build: ${{ steps.check.outputs.should_build }}
@@ -116,8 +97,8 @@ jobs:
# Build multi-arch Docker images
build-docker:
name: Build Docker Images
needs: [skip-duplicate, build-check]
if: needs.skip-duplicate.outputs.should_skip != 'true' && needs.build-check.outputs.should_build == 'true'
needs: build-check
if: needs.build-check.outputs.should_build == 'true'
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
@@ -193,8 +174,8 @@ jobs:
# Create manifest for main production image
create-manifest:
name: Create Manifest
needs: [skip-duplicate, build-check, build-docker]
if: needs.skip-duplicate.outputs.should_skip != 'true' && needs.build-check.outputs.should_push == 'true' && startsWith(github.ref, 'refs/tags/')
needs: [build-check, build-docker]
if: needs.build-check.outputs.should_push == 'true' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub