-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1013 Bytes
/
get_flight_data.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
name: Get flight data
run-name: Get flight data from api
on:
schedule:
- cron: "*/15 * * * *"
push:
branches:
- main
jobs:
Get-Data:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install requests
- name: Run the Python script
run: |
python request.py
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Change
commit_options: "--no-verify --signoff"
repository: .
commit_user_name: My GitHub Actions Bot # defaults to "github-actions[bot]"
commit_user_email: [email protected] # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
commit_author: Author <[email protected]> # defaults to author of the commit that triggered the run
push_options: "--force"