Skip to content

Commit

Permalink
🔄 synced file(s) with conda/infrastructure (#353)
Browse files Browse the repository at this point in the history
Co-authored-by: Conda Bot <conda-bot@users.noreply.github.com>
  • Loading branch information
conda-bot and conda-bot authored Aug 8, 2024
1 parent 58635a9 commit 1494093
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
workflow_dispatch:
inputs:
dryrun:
description: 'dryrun: Preview changes to labels without editing them (true|false)'
required: true
delete-unmapped:
description: Delete labels not mapped in either global or local label configurations.
default: false
type: boolean

dry-run:
description: Run label synchronization workflow without making any changes.
default: false
type: boolean
default: true

jobs:
sync:
Expand All @@ -20,23 +24,26 @@ jobs:
LOCAL: .github/labels.yml
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- id: has_local
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: ${{ env.LOCAL }}

- name: Global Only
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
if: steps.has_local.outputs.files_exists == 'false'
with:
config-file: ${{ env.GLOBAL }}
delete-other-labels: true
dry-run: ${{ github.event.inputs.dryrun }}
delete-other-labels: ${{ inputs.delete-unmapped }}
dry-run: ${{ inputs.dry-run }}

- name: Global & Local
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
if: steps.has_local.outputs.files_exists == 'true'
with:
config-file: |
${{ env.GLOBAL }}
${{ env.LOCAL }}
delete-other-labels: true
dry-run: ${{ github.event.inputs.dryrun }}
delete-other-labels: ${{ inputs.delete-unmapped }}
dry-run: ${{ inputs.dry-run }}
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Conda Organization Code of Conduct

> [!NOTE]
> Below is the short version of our CoC, see the long version [here](https://github.com/conda-incubator/governance/blob/main/CODE_OF_CONDUCT.md).
> Below is the short version of our CoC, see the long version [here](https://github.com/conda/governance/blob/main/CODE_OF_CONDUCT.md).
# The Short Version

Expand Down

0 comments on commit 1494093

Please sign in to comment.