modification done on action #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} | |
GITHBU_PuSH_NUMBER: ${{github.event.head_commit.id}} | |
GITHUB_COMMIT: ${{github.event.commits.message}} | |
run: | | |
python3 src/notify_on_push.py | |