[DAR-4305][External] Cancel push
operations if there are no valid files to upload, and correctly remove invalid files
#848
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update Linear Labels" | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
update-linear: | |
if: github.ref_name != 'master' && !github.event.pull_request.head.repo.fork | |
name: Update Linear | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: v7labs/update-linear-labels-action@0d527ddba6f2f0e0c28c3ec5c8a26767caf13ee3 # v1 | |
with: | |
label_name: "DarwinPy" | |
branch_name: "${{ github.head_ref }}" | |
linear_token: "${{ secrets.LINEAR_TOKEN }}" | |
error_exit_code: 0 |