mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1728 from YunoHost/fix-n-autoupdater
Display n version in auto-update PRs
This commit is contained in:
commit
2bf2956b3d
1 changed files with 6 additions and 4 deletions
10
.github/workflows/n_updater.yml
vendored
10
.github/workflows/n_updater.yml
vendored
|
@ -20,9 +20,11 @@ jobs:
|
||||||
# Setting up Git user
|
# Setting up Git user
|
||||||
git config --global user.name 'yunohost-bot'
|
git config --global user.name 'yunohost-bot'
|
||||||
git config --global user.email 'yunohost-bot@users.noreply.github.com'
|
git config --global user.email 'yunohost-bot@users.noreply.github.com'
|
||||||
# Run the updater script
|
# Download n
|
||||||
wget https://raw.githubusercontent.com/tj/n/master/bin/n --output-document=helpers/vendor/n/n
|
wget https://raw.githubusercontent.com/tj/n/master/bin/n --output-document=helpers/vendor/n/n
|
||||||
|
# Proceed only if there is a change
|
||||||
[[ -z "$(git diff helpers/vendor/n/n)" ]] || echo "PROCEED=true" >> $GITHUB_ENV
|
[[ -z "$(git diff helpers/vendor/n/n)" ]] || echo "PROCEED=true" >> $GITHUB_ENV
|
||||||
|
echo "VERSION=$(sed -n 's/^VERSION=\"\(.*\)\"/\1/p' < n)" >> $GITHUB_ENV
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
id: commit
|
id: commit
|
||||||
if: ${{ env.PROCEED == 'true' }}
|
if: ${{ env.PROCEED == 'true' }}
|
||||||
|
@ -34,14 +36,14 @@ jobs:
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Update n to version ${{ env.VERSION }}
|
commit-message: Update n to ${{ env.VERSION }}
|
||||||
committer: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
committer: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
||||||
author: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
author: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
||||||
signoff: false
|
signoff: false
|
||||||
base: dev
|
base: dev
|
||||||
branch: ci-auto-update-n-v${{ env.VERSION }}
|
branch: ci-auto-update-n-v${{ env.VERSION }}
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
title: 'Upgrade n to version ${{ env.VERSION }}'
|
title: 'Upgrade n to ${{ env.VERSION }}'
|
||||||
body: |
|
body: |
|
||||||
Upgrade `n` to v${{ env.VERSION }}
|
Upgrade `n` to ${{ env.VERSION }}
|
||||||
draft: false
|
draft: false
|
||||||
|
|
Loading…
Add table
Reference in a new issue