-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reverse ga * update github actions --------- Co-authored-by: Shajia Abidi <[email protected]>
- Loading branch information
1 parent
12d7f31
commit 171f819
Showing
1 changed file
with
19 additions
and
44 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 |
---|---|---|
@@ -1,49 +1,24 @@ | ||
name: AP Tabulation and Race Call Statuses | ||
|
||
on: | ||
on: | ||
schedule: | ||
- cron: "*/15 * * * *" | ||
|
||
jobs: | ||
# runEndpoint: | ||
# runs-on: ubuntu-latest | ||
# container: "node:20" | ||
# if: github.event.schedule != '*/15 * * * *' | ||
# outputs: | ||
# output1: ${{ steps.step1.outputs.bool }} | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Install Dependencies | ||
# run: npm install | ||
# - name: Run Code | ||
# id: step1 | ||
# env: | ||
# SHEETS_ID: ${{secrets.SHEETS_ID}} | ||
# GOOGLE_CREDENTIALS: ${{secrets.GOOGLE_CREDENTIALS}} | ||
# run: | | ||
# shouldRunEndpoint=$(node elex-tabulation-data/main.js) | ||
# echo $shouldRunEndpoint | ||
# echo "bool=$shouldRunEndpoint" >> $GITHUB_OUTPUT | ||
|
||
- cron: "*/20 * * * *" | ||
|
||
# Do I hve to checkout and install again? | ||
jobs: | ||
job2: | ||
runs-on: ubuntu-latest | ||
needs: runEndpoint | ||
# if: needs.runEndpoint.outputs.output1 == 'true' && github.event.schedule != '52 11 * * *' | ||
container: "node:20" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Run Code | ||
env: | ||
SHEETS_ID: ${{secrets.SHEETS_ID}} | ||
SLACK_TOKEN: ${{secrets.SLACK_TOKEN}} | ||
AP_API_KEY: ${{secrets.AP_API_KEY}} | ||
GOOGLE_CREDENTIALS: ${{secrets.GOOGLE_CREDENTIALS}} | ||
run: | | ||
# echo ${{needs.runEndpoint.outputs.output1}} | ||
node elex-tabulation-data/index.js | ||
runs-on: ubuntu-latest | ||
container: "node:20" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Run Code | ||
env: | ||
SHEETS_ID: ${{secrets.SHEETS_ID}} | ||
SLACK_TOKEN: ${{secrets.SLACK_TOKEN}} | ||
AP_API_KEY: ${{secrets.AP_API_KEY}} | ||
GOOGLE_CREDENTIALS: ${{secrets.GOOGLE_CREDENTIALS}} | ||
run: | | ||
# echo ${{needs.runEndpoint.outputs.output1}} | ||
node elex-tabulation-data/index.js |