forked from hongkongkiwi/docker-overdrive
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 884 Bytes
/
autorelease.yaml
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
name: Release
on:
pull_request_target:
branches:
- 'main'
types:
- closed
jobs:
autorelease:
name: AutoRelease
if: |
startsWith(github.event.pull_request.title, 'New Release - docker-overdrive -> v') &&
github.event.label.name == 'release' &&
github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rm -rf .git/hooks
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install js-yaml
- name: "Release"
id: create-release
uses: "actions/github-script@v6.4.1"
with:
github-token: "${{ secrets.PAT }}"
script: |
const script = require('./.github/workflows/github-release/github-create-release.js')
return await script({github, context, core})