Skip to content

Commit

Permalink
ci: Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CycleBai committed Jul 29, 2024
1 parent 599db0a commit 6386c91
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/auto_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,15 @@ jobs:
title: "Auto PR from ${{ env.branch_name }}"
body: "This is an automated PR created from ${{ env.branch_name }}"

- name: Append commit to existing PR
- name: Get PR number
if: env.branch_exists == 'true'
id: get_pr_number
run: |
pr_number=$(gh pr list --state open --head ${{ env.branch_name }} --json number -q '.[0].number')
gh pr comment ${{ pr_number }} --body "New commits have been added to the PR."
echo "pr_number=$pr_number" >> $GITHUB_ENV
echo "PR number: $pr_number"
- name: Append commit to existing PR
if: env.branch_exists == 'true'
run: |
gh pr comment ${{ env.pr_number }} --body "New commits have been added to the PR."

0 comments on commit 6386c91

Please sign in to comment.