Skip to content

Commit

Permalink
fixup! ci: only commit version.txt if a change happened
Browse files Browse the repository at this point in the history
  • Loading branch information
derpsteb committed Mar 31, 2023
1 parent 4bf2ca5 commit 242fd4e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
git config --global user.name "release[bot]"
git config --global user.email "release[bot]@users.noreply.github.com"
git add version.txt
(git diff --quiet && git diff --staged --quiet) || git commit -m "chore: update version.txt to ${{ inputs.version }}"
git diff --staged --quiet || git commit -m "chore: update version.txt to ${{ inputs.version }}"
git push origin "${BRANCH}"
micro-services:
Expand Down Expand Up @@ -350,13 +350,6 @@ jobs:
git fetch
git checkout -b "${NEW_BRANCH}"
- name: Update CMakeLists.txt
run: |
sed -i "s/project(constellation LANGUAGES C VERSION [0-9]\+\.[0-9]\+\.[0-9]\+)/project(constellation LANGUAGES C VERSION 0.0.0)/" CMakeLists.txt
git add CMakeLists.txt
git commit -m "deps: set PROJECT_VERSION to prerelease"
git push --set-upstream origin "${NEW_BRANCH}"
- name: Create PR
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
with:
Expand Down

0 comments on commit 242fd4e

Please sign in to comment.