Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display n version in auto-update PRs #1728

Merged
merged 1 commit into from
Oct 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/n_updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
# Setting up Git user
git config --global user.name 'yunohost-bot'
git config --global user.email '[email protected]'
# Run the updater script
# Download 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
echo "VERSION=$(sed -n 's/^VERSION=\"\(.*\)\"/\1/p' < n)" >> $GITHUB_ENV
- name: Commit changes
id: commit
if: ${{ env.PROCEED == 'true' }}
Expand All @@ -34,14 +36,14 @@ jobs:
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update n to version ${{ env.VERSION }}
commit-message: Update n to ${{ env.VERSION }}
committer: 'yunohost-bot <[email protected]>'
author: 'yunohost-bot <[email protected]>'
signoff: false
base: dev
branch: ci-auto-update-n-v${{ env.VERSION }}
delete-branch: true
title: 'Upgrade n to version ${{ env.VERSION }}'
title: 'Upgrade n to ${{ env.VERSION }}'
body: |
Upgrade `n` to v${{ env.VERSION }}
Upgrade `n` to ${{ env.VERSION }}
draft: false