Skip to content

Commit

Permalink
specify tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelirh committed Jun 6, 2024
1 parent 09e56f7 commit 4a638a4
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/release-repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ jobs:
ref: ${{ env.MAIN_BRANCH }}
fetch-depth: 0

- name: Create PR to main branch
if: ${{ github.event.inputs.release_candidate != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode)
== true }}
run: |
gh pr create \
--base ${{ env.MAIN_BRANCH }} \
--head ${{ github.event.inputs.release_candidate }} \
--title "Release ${{ steps.catkin_release.outputs.version}} to ${{ env.MAIN_BRANCH }}" \
--body "This PR incorporates package(s) version and changelog update."
# - name: Create PR to main branch
# if: ${{ github.event.inputs.release_candidate != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode)
# == true }}
# run: |
# gh pr create \
# --base ${{ env.MAIN_BRANCH }} \
# --head ${{ github.event.inputs.release_candidate }} \
# --title "Release ${{ steps.catkin_release.outputs.version}} to ${{ env.MAIN_BRANCH }}" \
# --body "This PR incorporates package(s) version and changelog update."

- name: Merge PR to main branch
if: ${{ github.event.inputs.release_candidate != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode)
== true }}
run: |
gh pr merge ${{ github.event.inputs.release_candidate }} \
--merge --delete-branch
# - name: Merge PR to main branch
# if: ${{ github.event.inputs.release_candidate != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode)
# == true }}
# run: |
# gh pr merge ${{ github.event.inputs.release_candidate }} \
# --merge --delete-branch

- name: Create prerelease
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
Expand All @@ -99,7 +99,7 @@ jobs:
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
== false}}
run: |
gh release create ${{ steps.catkin_release.outputs.version }} \
gh release create 2.0.3 \
--target ${{ env.MAIN_BRANCH }} \
--title ${{ github.event.inputs.release_name }} \
--generate-notes
Expand Down

0 comments on commit 4a638a4

Please sign in to comment.