-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (31 loc) · 1.07 KB
/
action.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
name: "create-release"
author: "dev-hato Development Team"
description: "リリースを作成する"
inputs:
github-token: # id of input
description: "GITHUB_TOKEN"
required: true
runs:
using: "composite"
steps:
- name: Increment version
id: increment_version
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
SHA: ${{ github.sha }}
with:
github-token: ${{inputs.github-token}}
result-encoding: string
script: |
const {script} = require('${{ github.action_path }}/dist/increment_version.js')
return await script(github, context)
- name: Create release
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
GITHUB_REF: ${{env.GITHUB_REF}}
TAG_NAME: ${{ steps.increment_version.outputs.result }}
with:
github-token: ${{inputs.github-token}}
script: |
const {script} = require('${{ github.action_path }}/dist/create_release.js')
return await script(github, context)