Skip to content

Commit

Permalink
Merge pull request #514 from phunkyfish/update-action-scripts
Browse files Browse the repository at this point in the history
Update git workflows
  • Loading branch information
phunkyfish authored Jul 6, 2021
2 parents 6bc499d + b59c5db commit 09a4cc4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "v${{ steps.required-variables.outputs.version }}" -a
git commit -m "changelog and version v${{ steps.required-variables.outputs.version }}" -a
working-directory: ${{ github.event.repository.name }}

- name: Push changes
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/increment-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,23 @@ jobs:
python3 ../scripts/binary/increment_version.py $HOME/files.json -c -n
working-directory: ${{ github.event.repository.name }}

- name: Install dependencies
run: |
sudo apt-get install libxml2-utils xmlstarlet
- name: Get required variables
id: required-variables
run: |
version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)')
echo ::set-output name=version::$version
working-directory: ${{ github.event.repository.name }}

- name: Create PR for incrementing add-on versions
uses: peter-evans/[email protected]
with:
commit-message: Add-on version incremented
title: Add-on version incremented
commit-message: Add-on version incremented to ${{ steps.required-variables.outputs.version }} from Weblate
title: Add-on version incremented to ${{ steps.required-variables.outputs.version }} from Weblate
body: Add-on version incremented triggered by ${{ github.sha }}
branch: inc-ver
delete-branch: true
path: ./${{ github.event.repository.name }}
path: ./${{ github.event.repository.name }}

0 comments on commit 09a4cc4

Please sign in to comment.