-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1.12 KB
/
release.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
name: Release Drafter
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
jobs:
update_release_draft:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@master
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- id: release_draft
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Version Update
if: github.event_name == 'push'
env:
TAG_NAME: ${{ steps.release_draft.outputs.tag_name }}
ALL: ${{ toJson(steps.release_draft.outputs) }}
run: |
deno run -A main.ts set $TAG_NAME
git config --global user.email "[email protected]"
git config --global user.name "Justin Chase"
git status --short
if [[ $(git commit -am "$TAG_NAME") ]]
then
git push
else
echo "No changes detected, skipping commit."
fi