Skip to content

Commit

Permalink
fix workflow (#381)
Browse files Browse the repository at this point in the history
Signed-off-by: Masaya Kataoka <[email protected]>
  • Loading branch information
hakuturu583 authored Jan 5, 2025
1 parent 26d8c0a commit d7004a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,20 @@ jobs:
run: |
git add -N .
echo "name=count::$(git diff --name-only | wc -l)" >> "$GITHUB_OUTPUT"
- name: Check branch exist
id: check_branch
- name: Check if branch exists
id: check_branch_exist
run: |
if git ls-remote --heads https://github.com/OUXT-Polaris/${{ matrix.package_name }}.git workflow/sync | grep -q 'refs/heads/workflow/sync'; then
echo "exist=true" >> "$GITHUB_OUTPUT"
else
echo "exist=false" >> "$GITHUB_OUTPUT"
fi
- name: Delete old branch
if: steps.check_branch.outputs.exist == 'true'
if: steps.check_branch_exist.outputs.exist == 'true'
run: |
git push origin --delete workflow/sync || true
- name: Print deleted branch
if: steps.check_branch.outputs.exist == 'true'
if: steps.check_branch_exist.outputs.exist == 'true'
run: |
echo "Deleted branch workflow/sync"
- uses: peter-evans/create-pull-request@v3
Expand Down

0 comments on commit d7004a5

Please sign in to comment.