File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 6161 fetch-depth : 0
6262 ref : ${{ inputs.branch }}
6363
64- - uses : commonhaus/vote-record-actions/.github/ actions/count-votes@main
64+ - uses : commonhaus/vote-record-actions/actions/count-votes@main
6565 id : count-votes
6666 with :
6767 commit-message : ${{ inputs.commit-message }}
Original file line number Diff line number Diff line change 6868 GITHUB_TOKEN : ${{ github.token }}
6969 run : |
7070 VERSION=$(npm version ${INPUT_VERSION} -m "π %s" --tag-version-prefix="")
71+
72+ # Update references from main to the new release branch
73+ sed -i "s|VOTE_ACTIONS_RELEASE: snapshot|VOTE_ACTIONS_RELEASE: '$VERSION'|" actions/count-votes/action.yml
74+ sed -i "s|count-votes@main|count-votes@'$VERSION'|" .github/workflows/receive-votes.yml
75+
7176 git push && git push --tags
7277
7378 echo ${VERSION}
7681 # Create a new branch for the release
7782 git checkout -b ${BRANCH}
7883
79- # Update references from main to the new release branch
80- sed -i "s|VOTE_ACTIONS_RELEASE: snapshot|VOTE_ACTIONS_RELEASE: '$VERSION'|" .github/actions/count-votes/action.yml
81- sed -i "s|count-votes@main|count-votes@'$VERSION'|" .github/workflows/receive-votes.yml
82-
83- git add .github
84+ git add .github actions
8485 git commit -m "π Update action references for ${VERSION}"
8586 git push --set-upstream origin ${BRANCH}
8687
Original file line number Diff line number Diff line change 4747 git config user.name "${{ inputs.bot-name }}"
4848 git config user.email "${{ inputs.bot-email }}"
4949
50+ - name : Use Node.js
51+ uses : actions/setup-node@v4
52+ with :
53+ node-version : ' 20'
54+
5055 - name : Download Compiled JS from Release
5156 shell : bash
5257 env :
You canβt perform that action at this time.
0 commit comments