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:
parent
3c78d3df2a
commit
fef6963465
1 changed files with 3 additions and 3 deletions
6
.github/workflows/updater.yml
vendored
6
.github/workflows/updater.yml
vendored
|
@ -7,7 +7,7 @@ jobs:
|
||||||
updater:
|
updater:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Check if newer version is available upstream
|
- name: Check if newer version is available upstream
|
||||||
|
@ -46,12 +46,12 @@ jobs:
|
||||||
# Run the version updater script
|
# Run the version updater script
|
||||||
./.github/workflows/updater.sh
|
./.github/workflows/updater.sh
|
||||||
# Replace new version in manifest
|
# 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
|
# Commit
|
||||||
git commit -am "Upgrade to v$VERSION"
|
git commit -am "Upgrade to v$VERSION"
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: cpr
|
id: cpr
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v4
|
||||||
if: steps.check_version.outputs.to_update == 'true'
|
if: steps.check_version.outputs.to_update == 'true'
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue