Skip to content

Commit 22807d8

Browse files
committed
Test with fetch depth 0
1 parent b2da1cb commit 22807d8

File tree

1 file changed

+63
-62
lines changed

1 file changed

+63
-62
lines changed

.github/workflows/release-repository.yaml

+63-62
Original file line numberDiff line numberDiff line change
@@ -32,82 +32,83 @@ jobs:
3232
MAIN_BRANCH: ros2
3333
DEVEL_BRANCH: ros2-devel
3434
steps:
35-
- name: Checkout to rc branch
36-
uses: actions/checkout@v4
37-
with:
38-
ref: ${{ github.event.inputs.release_candidate }}
35+
# - name: Checkout to rc branch
36+
# uses: actions/checkout@v4
37+
# with:
38+
# ref: ${{ github.event.inputs.release_candidate }}
3939

40-
- name: Catkin release
41-
id: catkin_release
42-
uses: at-wat/catkin-release-action@v1
43-
with:
44-
version: ${{ github.event.inputs.version }}
45-
git_user: action-bot
46-
git_email: action-bot@action-bot.com
47-
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
# - name: Catkin release
41+
# id: catkin_release
42+
# uses: at-wat/catkin-release-action@v1
43+
# with:
44+
# version: ${{ github.event.inputs.version }}
45+
# git_user: action-bot
46+
# git_email: action-bot@action-bot.com
47+
# github_token: ${{ secrets.GITHUB_TOKEN }}
4848

49-
- name: Catkin release - create PR
50-
run: |
51-
gh pr create \
52-
--base ${{ github.event.inputs.release_candidate }} \
53-
--head ${{ steps.catkin_release.outputs.created_branch }} \
54-
--title "Release ${{ steps.catkin_release.outputs.version}}" \
55-
--body "This PR incorporates package(s) version and changelog update."
49+
# - name: Catkin release - create PR
50+
# run: |
51+
# gh pr create \
52+
# --base ${{ github.event.inputs.release_candidate }} \
53+
# --head ${{ steps.catkin_release.outputs.created_branch }} \
54+
# --title "Release ${{ steps.catkin_release.outputs.version}}" \
55+
# --body "This PR incorporates package(s) version and changelog update."
5656

57-
- name: Catkin release - merge PR
58-
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
59-
run: |
60-
gh pr merge ${{ steps.catkin_release.outputs.created_branch }} \
61-
--merge --delete-branch
57+
# - name: Catkin release - merge PR
58+
# if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
59+
# run: |
60+
# gh pr merge ${{ steps.catkin_release.outputs.created_branch }} \
61+
# --merge --delete-branch
6262

63-
- name: Checkout to main branch
64-
if: ${{ github.event.inputs.release_candidate != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode)
65-
== true }}
66-
uses: actions/checkout@v4
67-
with:
68-
ref: ${{ env.MAIN_BRANCH }}
63+
# - name: Checkout to main branch
64+
# if: ${{ github.event.inputs.release_candidate != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode)
65+
# == true }}
66+
# uses: actions/checkout@v4
67+
# with:
68+
# ref: ${{ env.MAIN_BRANCH }}
6969

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

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

87-
- name: Create prerelease
88-
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
89-
== true}}
90-
run: |
91-
gh release create ${{ steps.catkin_release.outputs.version }} \
92-
--target ${{ env.MAIN_BRANCH }} \
93-
--title ${{ github.event.inputs.release_name }} \
94-
--generate-notes \
95-
--prerelease
87+
# - name: Create prerelease
88+
# if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
89+
# == true}}
90+
# run: |
91+
# gh release create ${{ steps.catkin_release.outputs.version }} \
92+
# --target ${{ env.MAIN_BRANCH }} \
93+
# --title ${{ github.event.inputs.release_name }} \
94+
# --generate-notes \
95+
# --prerelease
9696

97-
- name: Create release
98-
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
99-
== false}}
100-
run: |
101-
gh release create ${{ steps.catkin_release.outputs.version }} \
102-
--target ${{ env.MAIN_BRANCH }} \
103-
--title ${{ github.event.inputs.release_name }} \
104-
--generate-notes
97+
# - name: Create release
98+
# if: ${{ fromJSON(github.event.inputs.automatic_mode) == true && fromJSON(github.event.inputs.prerelease)
99+
# == false}}
100+
# run: |
101+
# gh release create ${{ steps.catkin_release.outputs.version }} \
102+
# --target ${{ env.MAIN_BRANCH }} \
103+
# --title ${{ github.event.inputs.release_name }} \
104+
# --generate-notes
105105

106106
- name: Checkout to devel branch
107107
if: ${{ env.DEVEL_BRANCH != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode) == true }}
108108
uses: actions/checkout@v4
109109
with:
110110
ref: ${{ env.DEVEL_BRANCH }}
111+
fetch-depth: 0
111112

112113
- name: Update devel branch
113114
if: ${{ env.DEVEL_BRANCH != env.MAIN_BRANCH && fromJSON(inputs.automatic_mode) == true }}

0 commit comments

Comments
 (0)