Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cb5c0c2

Browse files
authored
fix: force condition (#31)
1 parent 140615d commit cb5c0c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ runs:
2020
run: npm install github-label-template
2121
shell: bash
2222
- name: 'delete existing labels'
23-
if: ${{ <expression> }}
24-
run: npx ghlbl -o ${{ inputs.owner-name }} -r ${{ inputs.repository-name }} -t ${{ inputs.github-token }} -d
23+
run: [[ "${{ inputs.force }}" = true ]] && npx ghlbl -o ${{ inputs.owner-name }} -r ${{ inputs.repository-name }} -t ${{ inputs.github-token }} -d
2524
shell: bash
2625
- name: 'import labels from json file'
2726
run: npx ghlbl -o ${{ inputs.owner-name }} -r ${{ inputs.repository-name }} -t ${{ inputs.github-token }} -i ${{ github.action_path }}/labels.json

0 commit comments

Comments
 (0)