Skip to content

Package Check

Package Check #67

Workflow file for this run

name: Package Check
on:
workflow_run:
workflows: [Check]
types: [completed]
branches: [main, master]
workflow_dispatch:
concurrency:
group: package-check-${{ github.ref }}
cancel-in-progress: true
jobs:
paths-filter:
runs-on: ubuntu-latest
outputs:
packaging: ${{ steps.filter.outputs.packaging }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
ref: ${{ github.event.workflow_run.head_sha || github.sha }}
- id: filter
shell: bash
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "packaging=true" >> "$GITHUB_OUTPUT"
elif git diff --name-only HEAD~1 HEAD 2>/dev/null | grep -qE '^(aao/|custom/|resource/|examples/|aao\.spec|pyproject\.toml|uv\.lock|package\.json|pnpm-lock\.yaml|logo\.png|\.github/workflows/(package-check|_build)\.yml)'; then
echo "packaging=true" >> "$GITHUB_OUTPUT"
else
echo "packaging=false" >> "$GITHUB_OUTPUT"
echo "No packaging files changed, skipping build"
fi
build:
needs: paths-filter
if: ${{ needs.paths-filter.outputs.packaging == 'true' && (github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch') }}
uses: ./.github/workflows/_build.yml
with:
artifact_name: check-build
archive_prefix: ArknightsAutoOperator-check-${{ github.event.workflow_run.head_sha || github.sha }}