mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 18:59:20 +01:00
config: add deployment workflow (#8)
This commit is contained in:
41
.github/workflows/automatic-release.yml
vendored
Normal file
41
.github/workflows/automatic-release.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Automatic Release
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 20 * * 5 # At 20:00 on Friday. - https://crontab.guru/#0_20_*_*_5
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_AUTOMATIC_RELEASE }}
|
||||
|
||||
jobs:
|
||||
merge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Discord notification
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
args: 'Preparing the automatic release...'
|
||||
- uses: actions/checkout@v4
|
||||
- uses: peter-evans/create-pull-request@v5
|
||||
id: create-pull-request
|
||||
with:
|
||||
base: main
|
||||
branch: dev
|
||||
delete-branch: false
|
||||
title: "(chore): version update"
|
||||
reviewers: manuel-rw, meierschlumpf
|
||||
- name: Check outputs
|
||||
if: ${{ steps.create-pull-request.outputs.pull-request-number }}
|
||||
run: |
|
||||
echo "Pull Request Number - ${{ steps.create-pull-request.outputs.pull-request-number }}"
|
||||
echo "Pull Request URL - ${{ steps.create-pull-request.outputs.pull-request-url }}"
|
||||
- name: Discord notification
|
||||
if: ${{ steps.create-pull-request.outputs.pull-request-number }}
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
args: 'Deployment pull request has been created at [${{ steps.create-pull-request.outputs.pull-request-number }}](${{ steps.create-pull-request.outputs.pull-request-url }})'
|
||||
Reference in New Issue
Block a user