1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cinny_ynh.git synced 2024-09-03 18:16:13 +02:00
cinny_ynh/.github/workflows/updater.yml

41 lines
1.6 KiB
YAML
Raw Normal View History

2021-12-08 23:13:18 +01:00
# This workflow allows GitHub Actions to automagically update your app whenever a new upstream release is detected.
# You need to enable Actions in your repository settings, and fetch this Action from the YunoHost-Apps organization.
# This file should be enough by itself, but feel free to tune it to your needs.
# It calls updater.sh, which is where you should put the app-specific update steps.
name: Check for new upstream releases
on:
# Allow to manually trigger the workflow
workflow_dispatch:
# Run it every day at 6:00 UTC
schedule:
2022-05-21 10:42:00 +02:00
- cron: '0 6 * * *'
2021-12-08 23:13:18 +01:00
jobs:
updater:
2022-05-21 10:42:00 +02:00
# Maintainer should customize the updater script then comment this line.
# if: ${{ false }}
2021-12-08 23:13:18 +01:00
runs-on: ubuntu-latest
steps:
- name: Fetch the source code
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
2022-05-21 10:42:00 +02:00
2021-12-08 23:13:18 +01:00
- name: Run the updater script
2022-05-21 10:42:00 +02:00
run: .github/workflows/updater.py
2021-12-08 23:13:18 +01:00
- name: Create Pull Request
if: ${{ env.PROCEED == 'true' }}
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
2022-05-21 10:42:00 +02:00
title: Upgrade ${{ env.APP_NAME }} to version ${{ env.VERSION }}
body: Upgrade ${{ env.APP_NAME }} to version ${{ env.VERSION }}
commit-message: Upgrade ${{ env.APP_NAME }} to version ${{ env.VERSION }}
2021-12-08 23:13:18 +01:00
committer: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
author: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
base: testing
2022-05-21 10:42:00 +02:00
branch: ${{ env.BRANCH }}
2021-12-08 23:13:18 +01:00
delete-branch: true