Skip to content

Commit

Permalink
manual.yml added
Browse files Browse the repository at this point in the history
testing actions

renamed to

testing actions
  • Loading branch information
AdityyaX committed Jan 23, 2024
1 parent 3b2c2e1 commit 06257cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
File renamed without changes.
14 changes: 10 additions & 4 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@ jobs:
with:
node-version: '14'

- name: Install dependency
run: npm install github-label-template
shell: bash

- name: Delete existing labels
run: |
echo "GitHub Token: ${{ secrets.github-token }}"
if [ "${{ inputs.force }}" = true ]; then
npx ghlbl -o ${{ inputs.owner-name }} -r ${{ inputs.repository-name }} -t ${{ secrets.github-token }} -d
echo "GitHub Token: ${{ secrets.GITHUB_TOKEN }}"
force=${{ inputs.force || 'false' }}
if [ "$force" = true ]; then
npx ghlbl -o ${{ secrets.OWNER_NAME }} -r ${{ secrets.REPO_NAME }} -t ${{ secrets.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 ${{ secrets.github-token }} -i ${{ github.action_path }}/labels.json
run: npx ghlbl -o ${{ secrets.OWNER_NAME }} -r ${{ secrets.REPO_NAME }} -t ${{ secrets.GITHUB_TOKEN }} -i .github/workflows/labels.json
shell: bash

0 comments on commit 06257cb

Please sign in to comment.