Skip to content

Commit

Permalink
ci: use workflow token
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu authored Apr 6, 2022
1 parent f36d1ee commit d52d8b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/label_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
git config --global user.name "mo-auto"
git config --global user.email "54212639+mo-auto@users.noreply.github.com"
git config --global user.signingkey "${{ steps.import_gpg.outputs.keyid }}"
echo "${{ secrets.MOWORKFLOWTOKEN }}" > token.txt
echo "${{ secrets.MOAUTO_WORKFLOW_TOKEN }}" > token.txt
gh auth login --with-token < token.txt
if [[ "${{github.event_name}}" == "issues" ]]; then
echo "Activated by an issue event"
Expand All @@ -67,4 +67,4 @@ jobs:
branch=${{github.base_ref}}
title=$(jq --raw-output .pull_request.title "$GITHUB_EVENT_PATH")
fi
sudo python3 ./automation/github-labels/label.py ${issue_or_pull_number} ${changed_files} ${branch} ${operation} ${title}
sudo python3 ./automation/github-labels/label.py ${issue_or_pull_number} ${changed_files} ${branch} ${operation} ${title}

0 comments on commit d52d8b9

Please sign in to comment.