name: PR CI on: pull_request: push: branches: - main concurrency: # Group by PR number, commit SHA (main) to avoid cross-branch cancellation, or branch ref for cancellation within each branch group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.ref == 'refs/heads/main' && github.sha) || github.ref }} cancel-in-progress: true permissions: contents: read jobs: pr-ci: # Allow `ydshieh2` for testing during development if: github.event_name == 'push' || contains(fromJSON('["MEMBER","OWNER","COLLABORATOR"]'), github.event.pull_request.author_association) || github.event.pull_request.user.login == 'ydshieh2' # DON'T use commit sha here before the CI migration is finished uses: huggingface/transformers-test-ci/.github/workflows/pr-ci_dynamic_caller_example.yml@main # main