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

Commit

Permalink
fix: labels reset condition (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude authored Oct 24, 2021
1 parent e66777b commit 63af084
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ runs:
- name: 'delete existing labels'
run: |
[[ ${{ inputs.force }} = true ]] && npx ghlbl -o ${{ inputs.owner-name }} -r ${{ inputs.repository-name }} -t ${{ inputs.github-token }} -d
if [ -z "${{ inputs.force }}" ]
then
npx ghlbl -o ${{ inputs.owner-name }} -r ${{ inputs.repository-name }} -t ${{ inputs.github-token }} -d
else
echo -e "Existing labels not removed"
fi
shell: bash
- name: 'import labels from json file'
run: npx ghlbl -o ${{ inputs.owner-name }} -r ${{ inputs.repository-name }} -t ${{ inputs.github-token }} -i ${{ github.action_path }}/labels.json
Expand Down

0 comments on commit 63af084

Please sign in to comment.