-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
action.yml
35 lines (35 loc) · 1.04 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
32
33
34
35
name: Automate pull request generation and tagging for releases using tagpr
author: Songmu
description: install and run the tagpr
inputs:
version:
description: "A version to install tagpr"
required: false
default: "v1.5.0"
config:
description: "A path to the tagpr configuration file"
required: false
outputs:
tag:
description: "The semver tag, which is output only when the tagpr has tagged"
value: ${{ steps.tagpr.outputs.tag }}
pull_request:
description: "Information of the pull request created by tagpr in JSON format"
value: ${{ steps.tagpr.outputs.pull_request }}
runs:
using: "composite"
steps:
- name: tagpr
id: tagpr
run: |
cd "${GITHUB_WORKSPACE}" || exit 1
TEMP_PATH="$(mktemp -d)"
PATH="${TEMP_PATH}:$PATH"
curl -sfL https://raw.githubusercontent.com/Songmu/tagpr/main/install.sh | sh -s -- -b "$TEMP_PATH" "${{ inputs.version }}" 2>&1
tagpr
shell: bash
env:
TAGPR_CONFIG_FILE: ${{ inputs.config }}
branding:
icon: 'git-pull-request'
color: 'blue'