Skip to content

Commit bbf9dcc

Browse files
committed
πŸ› properly update versions
1 parent 08fad6f commit bbf9dcc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

β€Ž.github/workflows/receive-votes.ymlβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ on:
3535
description: 'login of vote counting bot'
3636
type: string
3737
required: false
38+
vote_actions_release:
39+
description: 'published version of shared actions'
40+
type: string
41+
required: false
42+
default: latest
3843

3944
outputs:
4045
votes_updated:
@@ -72,3 +77,4 @@ jobs:
7277
markdown_dir: ${{ inputs.markdown_dir }}
7378
index_file: ${{ inputs.index_file }}
7479
vote_comment_bot: ${{ inputs.vote_comment_bot }}
80+
vote_actions_release: ${{ inputs.vote_actions_release }}

β€Ž.github/workflows/release-action.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
git push
9797
9898
# Update references from main to the new release branch
99-
sed -i "s|VOTE_ACTIONS_RELEASE: latest|VOTE_ACTIONS_RELEASE: '$VERSION'|" actions/count-votes/action.yml
99+
sed -i "s|default: latest|default: '$VERSION'|g" actions/*/action.yml
100100
sed -i "s|count-votes@main|count-votes@$VERSION|" .github/workflows/receive-votes.yml
101101
102102
# Update internal composite action references from @main to @VERSION
@@ -106,7 +106,7 @@ jobs:
106106
# Create a new branch for the release
107107
git checkout -b ${BRANCH}
108108
109-
git add .github actions
109+
git add .github
110110
git commit -m "πŸ“ Update action references for ${VERSION}"
111111
git push --set-upstream origin ${BRANCH}
112112

0 commit comments

Comments
Β (0)