-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #514 from phunkyfish/update-action-scripts
Update git workflows
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |