-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create github action for downloading files from s3
- Loading branch information
1 parent
a8735e1
commit 06878cd
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: download-from-s3 | ||
description: "Downloads files from s3" | ||
inputs: | ||
file-path: | ||
description: "Path to test script" | ||
required: true | ||
runs: | ||
using: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
wget https://chn-ghost-buses-public.s3.us-east-2.amazonaws.com/frontend_data_files/${{inputs.file-path}} \ | ||
-O src/Routes/${{inputs.file-path}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,14 @@ jobs: | |
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
wget https://chn-ghost-buses-public.s3.us-east-2.amazonaws.com/frontend_data_files/data.json \ | ||
-O src/Routes/data.json | ||
wget \ | ||
https://chn-ghost-buses-public.s3.us-east-2.amazonaws.com/frontend_data_files/schedule_vs_realtime_all_day_types_routes.json \ | ||
-O src/Routes/schedule_vs_realtime_all_day_types_routes.json | ||
- name: download data | ||
uses: ./.github/actions/download-from-s3 | ||
with: | ||
file-path: data.json | ||
- name: download schedule vs realtime | ||
uses: ./.github/actions/download-from-s3 | ||
with: | ||
file-path: schedule_vs_realtime_all_day_types_routes.json | ||
- run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
|