Skip to content

Commit

Permalink
Automatically tag branch with package version (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixmil authored Jul 18, 2024
1 parent d0f5e19 commit e9f0ff8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/bump-dev-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ jobs:
}
shell: Rscript {0}

- name: commit modified DESCRIPTION file
uses: EndBug/add-and-commit@v9
- name: Get package version from DESCRIPTION file and set as environment variable
run: |
echo "PKG_VERSION=$(grep -oP '(?<=Version: )\d+\.\d+\.\d+\.*\d*' DESCRIPTION)" >> $GITHUB_ENV
shell: bash

- uses: EndBug/add-and-commit@v9
if: ${{ success() }}
with:
message: '🤖 Bump development version. [skip actions]'
message: '🤖 Bump version. [skip actions]'
default_author: github_actions
add: 'DESCRIPTION'
tag: 'v${{ env.PKG_VERSION }}'

0 comments on commit e9f0ff8

Please sign in to comment.