Skip to content

Commit

Permalink
fix: github
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Dec 2, 2024
1 parent a4e3822 commit a8eacd9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/auto-pr-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
REPO_OWNER="ExpTechTW"
REPO_NAME="TREM-Plugins"
HEAD_REF="${{ steps.get-filename.outputs.branch_name }}"
BASE_REF="main"
curl -X POST \
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{\"title\":\"Update ${{ steps.get-filename.outputs.filename }}\",\"head\":\"$HEAD_REF\",\"base\":\"$BASE_REF\"}" \
https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls
pr_url=$(gh pr create \
--repo ExpTechTW/TREM-Plugins \
--base main \
--head ${{ steps.get-filename.outputs.branch_name }} \
--title "Update ${{ steps.get-filename.outputs.filename }}" \
--body "Automated update from plugin repository" \
--label "auto-merge")
echo "Created PR: $pr_url"

0 comments on commit a8eacd9

Please sign in to comment.