-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.37 KB
/
prerelease.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Auto Release Notes
on:
workflow_dispatch:
jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
steps:
- name: Repo Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set Env Variables
run: |
echo "PRERELEASE_VERSION=$(echo v`date +%Y.%m.%d`.`git rev-parse --short HEAD`.rc)" >> $GITHUB_ENV
echo "RELEASE_DATE=$(echo `date +%Y\.%m\.%d`)" >> $GITHUB_ENV
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ env.PRERELEASE_VERSION }}
prerelease: true
title: ${{ env.PRERELEASE_VERSION }}
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Dependencies
run: |
git fetch --all --tags
pip install requests
- name: Changelog Generation
run: |
python .github/workflows/scripts/auto-changelog.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_BRANCH: ${{ github.ref_name }}
GITHUB_URL: ${{ github.api_url }}
GITHUB_REPO_PATH: ${{ github.repository }}
PRERELEASE_VERSION: ${{ env.PRERELEASE_VERSION }}
RELEASE_DATE: ${{ env.RELEASE_DATE }}