Skip to content

Commit

Permalink
Another trial
Browse files Browse the repository at this point in the history
  • Loading branch information
AhyoungRyu committed Apr 2, 2024
1 parent 25b4c8a commit 662ed38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
version:
description: 'Target version'
required: true
push:
branches:
- 'feat/AC-1856'

jobs:
publish:
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release-ticket-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branch_name:
description: 'Type a branch name starting with `release/v`'
required: true
push:
branches:
- 'feat/AC-1856'

jobs:
trigger-release-ticket-creation:
Expand All @@ -30,15 +27,17 @@ jobs:
set -x
set -o pipefail
branch_name="${{ github.event.inputs.branch_name }}"
git ls-remote --exit-code --heads origin "$branch_name" | grep -q "$branch_name"
if [[ ${PIPESTATUS[1]} -eq 0 ]]; then
git ls-remote --exit-code --heads origin "$branch_name" | grep "$branch_name" || false
echo ${PIPESTATUS[0]}
echo ${PIPESTATUS[1]}
if [[ ${PIPESTATUS[0]} -eq 0 ]]; then
echo "BRANCH_EXISTS=true" >> $GITHUB_ENV
else
echo "BRANCH_EXISTS=false" >> $GITHUB_ENV
fi
- name: Create branch if it doesn't exist
if: steps.check_branch.outputs.branch_exists == 1
if: github.env.BRANCH_EXISTS == 'false'
run: |
branch_name="${{ github.event.inputs.branch_name }}"
git checkout -b "$branch_name"
Expand Down

0 comments on commit 662ed38

Please sign in to comment.