Automate monthly release

This commit is contained in:
HackerNCoder 2021-06-18 20:10:52 +00:00
parent f4c0ee49a7
commit 5a12ffc211
No known key found for this signature in database
GPG Key ID: 1E5E254ED4841744
2 changed files with 50 additions and 0 deletions

20
.github/workflows/create-ff-branch.yml vendored Normal file
View 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
View 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