Skip to content

Commit

Permalink
Update build_event_prep.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
petercort authored Dec 28, 2024
1 parent b7824ae commit aa5617d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_event_prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,19 @@ jobs:
working-directory: src
run: |
sed -i 's/"version": "[^"]*"/"version": "${{ needs.label.outputs.release-version }}"/' package.json
- name: Update app.version with new version
working-directory: src
run: |
echo "${{ needs.label.outputs.release-version }}" >| app.version
- name: Commit and Push Updates
working-directory: src
run: |
git config user.name "GitHub-Actions[bot]"
git config user.email "GitHub-Actions[bot]@users.noreply.github.com"
cp ${{ github.workspace }}/tmp/updated-changelog.md CHANGELOG.md
cp ${{ github.workspace }}/tmp/new-README.md README.md
git add CHANGELOG.md README.md package.json
git add CHANGELOG.md README.md package.json app.version
if ! git diff-index --quiet HEAD; then
git commit -m "Bot: Updating CHANGELOG, README and package.json for release based on #${{ github.event.pull_request.number }}"
git commit -m "Bot: Updating CHANGELOG, README, app.version and package.json for release based on #${{ github.event.pull_request.number }}"
git push origin ${{ github.event.pull_request.head.ref }}
fi

0 comments on commit aa5617d

Please sign in to comment.