1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Update updater.yml

This commit is contained in:
yalh76 2022-09-03 16:24:31 +02:00
parent 273de1feeb
commit 99aa1b4d5d

View file

@ -8,42 +8,42 @@ on:
workflow_dispatch: workflow_dispatch:
# Run it every monday at 6:00 UTC # Run it every monday at 6:00 UTC
schedule: schedule:
- cron: '0 6 * * 1' - cron: '0 6 * * 1'
jobs: jobs:
updater: updater:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Fetch the source code - name: Fetch the source code
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Run the updater script - name: Run the updater script
id: run_updater id: run_updater
run: | run: |
# 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 # Run the updater script
/bin/bash .github/workflows/updater.sh /bin/bash .github/workflows/updater.sh
- name: Commit changes - name: Commit changes
id: commit id: commit
if: ${{ env.PROCEED == 'true' }} if: ${{ env.PROCEED == 'true' }}
run: | run: |
git commit -am "Upgrade to $VERSION" git commit -am "Upgrade to $VERSION"
- name: Create Pull Request - name: Create Pull Request
id: cpr id: cpr
if: ${{ env.PROCEED == 'true' }} if: ${{ env.PROCEED == 'true' }}
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: to latest versions' commit-message: 'Update: to latest versions'
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
branch: ci-auto-update-${{ env.VERSION }} branch: ci-auto-update-${{ env.VERSION }}
base: testing base: testing
delete-branch: true delete-branch: true
title: 'Upgrade to ${{ env.VERSION }}' title: 'Upgrade to ${{ env.VERSION }}'
body: | body: |
Upgrade ${{ env.VERSION_CURRENT }} to ${{ env.VERSION }} Upgrade ${{ env.VERSION_CURRENT }} to ${{ env.VERSION }}
draft: false draft: false