-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (36 loc) · 1.11 KB
/
main.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
36
37
name: Update Latest ZerodhaStrikesAllowedToTrade
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '30 2 * * 1-5'
- cron: '27 15 * * 1-5'
jobs:
build:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Updated Latest ZerodhaStrikesAllowedToTrade Json File
CI_COMMIT_AUTHOR: DrJuneMoone
steps:
- uses: actions/checkout@v3
# Build steps
- uses: actions/setup-python@v4
with:
python-version: '3.10.x'
- run: python --version
- run: pip install -r requirements.txt
- run: python main.py
# Commit and push all changed files.
- name: GIT Commit Build Artifacts (coverage, dist, devdist, docs)
# Only run on main branch push (e.g. after pull request merge).
if: contains(fromJson('["schedule", "push", "pull_request"]'), github.event_name)
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git add --all
git commit --all -m "${{ env.CI_COMMIT_MESSAGE }}"
git push