-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a Scheduled Github Action for freshening data (#60)
* Add first draft of data fetching script * add triggers * typo fix * run on pull request * exit on error * install deps * install erlang-dev as a dependency. * fix syntax error * remove unnecessary compile step * yes and * add ssh debugging thingy * run ssh session in the background * attempt to limit memory. Let's see what happens. * chatgpt take the wheel lmao * ok not that much * install rebar from repos instead of attempting to compile locally * use setup-beam action * specify versions * jk not gleam * step it back a bit * fix ssl_verify_fun issue * precompile deps * include smash.gg token in env * remove tmate thingy * remove pull_request trigger * more cleanup
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
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,35 @@ | ||
name: Freshen Data | ||
run-name: Freshen Data | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '*/30 * * * *' | ||
jobs: | ||
freshen-tournament-data: | ||
runs-on: ubuntu-latest | ||
# Apparently this was supposed to be something more reasonable like "production" or "staging". | ||
# I had no idea what I was doing and don't see a way to change this in GitHub (this is what | ||
# associates the env vars and stuff) and am too lazy to remake it. | ||
environment: Default I guess | ||
env: | ||
SMASH_GG_TOKEN: ${{ secrets.SMASH_GG_TOKEN }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | ||
steps: | ||
- name: Install BEAM stuff | ||
uses: erlef/setup-beam@v1.16.0 | ||
with: | ||
otp-version: '25' | ||
elixir-version: '1.14' | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
mix deps.get | ||
mix deps.compile | ||
- name: Run data freshening script | ||
run: deploy/freshen_data.sh |
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
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