Skip to content

Commit

Permalink
ci: Add workflow - fix command
Browse files Browse the repository at this point in the history
  • Loading branch information
noritakaIzumi committed Nov 4, 2024
1 parent e5d667d commit dc0635d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/create-pr-code-owner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Extract branch name
id: extract_branch
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT

- uses: actions/create-github-app-token@v1
id: generate-token
with:
Expand All @@ -26,10 +31,10 @@ jobs:
- name: Create PR (after clean)
working-directory: .github
run: |
gh pr close ${{ github.event.ref }} --comment "This PR is deprecated." || true
gh pr close ${{ steps.extract_branch.outputs.branch }} --comment "This PR is deprecated." || true
gh pr create \
--base ${{ env.base-branch }} \
--head ${{ github.event.ref }} \
--head ${{ steps.extract_branch.outputs.branch }} \
--fill \
--reviewer ${{ env.reviewers }} \
--assignee ${{ github.actor }} \
Expand Down

0 comments on commit dc0635d

Please sign in to comment.