Skip to content

Commit

Permalink
[ci skip] ci: try to fix bump-version again
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Oct 10, 2023
1 parent ce8f3cb commit 22422de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ jobs:
run: |
echo "version=$(jq .version metadata.json.in)" >>$GITHUB_OUTPUT
- name: Setup Git user
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
- run: .github/bump-version.sh

- name: Get latest version tag
id: get_tag
run: |
echo "tag=$(git describe --tags --match="v[0-9]*" --abbrev=0 HEAD)" >>$GITHUB_OUTPUT
echo "tag=$(git describe --tags --match='v[0-9]*' --abbrev=0 HEAD)" >>$GITHUB_OUTPUT
- name: Check version matches the latest tag
run: |
test "v${{ steps.get_version.outputs.version }}" = "${{ steps.get_tag.outputs.tag }}"
- name: Setup Git user
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
- run: .github/bump-version.sh

- name: Push
run: |
git push
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Read version from metadata
id: get_version
Expand Down

0 comments on commit 22422de

Please sign in to comment.