forked from cloudforet-io/actions
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.02 KB
/
dispatch_sync_ci_core.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
38
39
name: "[dispatch] sync ci core"
on:
workflow_dispatch:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
sync_all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set git user
run : git config --global user.email [email protected]
- name: set python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: install requirements
run: pip install -r requirements.txt
- name: set PAT_TOKEN env
run: echo "PAT_TOKEN=$(echo ${{ secrets.PAT_TOKEN }})" >> $GITHUB_ENV
- name: apply workflows
run: |
python src/main.py --dest core --type topic
notify_to_slack:
needs: sync_all
runs-on: ubuntu-latest
steps:
- name: Slack
if: always()
uses: 8398a7/[email protected]
with:
status: ${{job.status}}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
author_name: Github Action Slack