Skip to content

Skip duplicate workflow runs #2295

Skip duplicate workflow runs

Skip duplicate workflow runs #2295

Workflow file for this run

name: CI/CD
on:
- push
- pull_request
env:
MANIFEST_FILE_NAME: "system.json"
PUBLIC_PATH: "public"
PACKAGE_FILE_NAME: "investigator.zip"
PACKAGE_PATH: package
DOWNLOAD_BASE: "https://github.com/${{github.repository}}/releases/download"
jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5.3.1
# with:
# concurrent_skipping: 'never'
# skip_after_successful_duplicate: 'true'
# paths_ignore: '["**/README.md", "**/docs/**"]'
# do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
ci-cd:
# annoyingly, reusable workflows have to be in .github/workflows, either of
# the local repo or a shared repo. There's literally no way of referencing
# a reusable workflow in another folder, maing it impossible to use shared
# workflows in subfolders (i.e. subrepos like we have.) Symlinks do not
# work (GH does not follow them) so we are left referencing the
# shared-fvtt-bits repo like this. See this discussion:
# https://github.com/orgs/community/discussions/9050
# Reusable workflows docs:
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
uses: lumphammer/gh-actions/.github/workflows/ci-cd-reusable.yml@2024-06-15
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
permissions:
contents: write
with:
manifest_file_name: "system.json"
public_path: "public"
package_file_name: "investigator.zip"
pnpm_version: "9"
package_path: "build_package"