forked from GomuDevelopers/workflow_template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 1.02 KB
/
notify_on_pull_request.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
name: workflow template for Gomu Developers Community
on:
push:
branches: ['master','dev']
jobs:
build_and_notify:
runs-on: ubuntu-latest
steps:
- name: checking out the repository
uses: actions/checkout@v3
- name: setting up python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: installing and caching dependencies
run: |
python3 -m pip install -r requirements.txt
- name: running python script
env:
GOMU_BOT_TOKEN: ${{secrets.GOMU_BOT_TOKEN}}
GOMU_CHANEL_ID: ${{secrets.GOMU_CHANEL_ID}}
GITHUB_AUTHOR: ${{github.event.sender.login}}
GITHUB_REPOSITORY: ${{github.repository}}
run: |
python3 src/notify_on_push.py