1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

[autopatch] Upgrade auto-updater

This commit is contained in:
tituspijean 2023-02-23 23:34:53 +01:00 committed by YunoHost Bot
parent 3c78d3df2a
commit fef6963465

View file

@ -7,7 +7,7 @@ jobs:
updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check if newer version is available upstream
@ -46,12 +46,12 @@ jobs:
# Run the version updater script
./.github/workflows/updater.sh
# Replace new version in manifest
jq -s --indent 4 ".[] | .version = \"$VERSION~ynh1\"" manifest.json | sponge manifest.json
jq -s --indent 4 ".[] | .version = "$VERSION~ynh1"" manifest.json | sponge manifest.json
# Commit
git commit -am "Upgrade to v$VERSION"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
if: steps.check_version.outputs.to_update == 'true'
with:
token: ${{ secrets.GITHUB_TOKEN }}