mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-11 23:28:31 +00:00
Automate monthly release
This commit is contained in:
parent
f4c0ee49a7
commit
5a12ffc211
20
.github/workflows/create-ff-branch.yml
vendored
Normal file
20
.github/workflows/create-ff-branch.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Feature Freeze Branch
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 23 * *'
|
||||
jobs:
|
||||
create_ff_branch:
|
||||
name: Create Feature Freeze Branch
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- id: date
|
||||
run: echo "::set-output name=date::$(date -d 'next month' +'%Y.%m.01')"
|
||||
|
||||
- uses: peterjgrainger/action-create-branch@v2.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
branch: ${{ steps.date.outputs.date }}
|
30
.github/workflows/monthly_release.yml
vendored
Normal file
30
.github/workflows/monthly_release.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: Monthly release
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 1 * *'
|
||||
|
||||
jobs:
|
||||
create_ff_branch:
|
||||
name: Create Monthly release tag
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- id: date
|
||||
run: echo "::set-output name=date::$(date -d 'next month' +'%Y.%m.01')"
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ steps.date.outputs.date }}
|
||||
fetch-depth: 0
|
||||
|
||||
- run: git --no-pager log --no-decorate --oneline $(git describe --tags --abbrev=0)..HEAD > output.log
|
||||
|
||||
- uses: actions/create-release@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.date.outputs.date }}
|
||||
release_name: ${{ steps.date.outputs.date }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
body_path: output.log
|
Loading…
Reference in New Issue
Block a user