-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.14 KB
/
dispatch_release.yaml
File metadata and controls
50 lines (44 loc) · 1.14 KB
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
49
50
name: "[Dispatch] Release"
on:
workflow_dispatch:
inputs:
branch:
description: 'branch를 입력해주세요(master와 release-x.y.z만 허용)'
required: true
default: 'master'
version:
description: 'version을 입력해주세요(x.y.z)'
required: true
default: '1.0.0'
env:
BRANCH: ${{ github.event.inputs.branch }}
VERSION: ${{ github.event.inputs.version }}
SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: echo "docker"
tagging:
needs: docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ env.BRANCH }}
token: ${{ secrets.PAT_TOKEN }}
- name: tagging
run: |
git config user.email admin@GJ-playgroud.com
git config user.name GJ-playgroud-admin
git tag ${{ env.VERSION }}
git push origin ${{ env.VERSION }}
notification:
needs: docker
runs-on: ubuntu-latest
steps:
- name: Slack
if: always()
run: echo "noti"