Skip to content

Update nexus-trusted-traveler-scheduler-1a.yml #289

Update nexus-trusted-traveler-scheduler-1a.yml

Update nexus-trusted-traveler-scheduler-1a.yml #289

# ## Docs:
# ## * https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges
# ##
# name: "auto-southwest-check-in-guest"
# on:
# # Push is for testing only to allow you to test this workflow without
# # a merge and just a push.
# # push:
# pull_request:
# # types:
# # - closed
# # branches:
# # - main
# ## Schedule doc: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
# ## ┌───────────── minute (0 - 59)
# ## │ ┌───────────── hour (0 - 23)
# ## │ │ ┌───────────── day of the month (1 - 31)
# ## │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# ## │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# ## │ │ │ │ │
# ## │ │ │ │ │
# ## │ │ │ │ │
# ## * * * * *
# schedule:
# ## Testing run every 5 minutes
# # - cron: '*/5 * * * *'
# ## Run every 5 hours on minute 37
# # - cron: '37 */5 * * *'
# ## Runs at min 35 of every hour
# # - cron: '35 * * * *'
# env:
# # SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
# # SLACK_CHANNEL: 'C05B9LLPVD5' # sf-devops.slack.com - recreation-gov
# # Enable debug output
# DEBUG: false
# jobs:
# check_open_reservations:
# # if: github.event.pull_request.merged == true
# runs-on: ubuntu-latest
# ## Set the max time to run this job
# ## https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
# ## Github Action has a 6 hour limit on how long you can run a job for. We will set this number to something less than that
# ## and about half of that to be safe. Then we are setting the cron above to re-run this job every 2-3 hours or so. There
# ## will be some overlap, which I think is ok to have two of these things running at the same time. That will give us coverage
# ## while one is shutting down and the other is starting up.
# # timeout-minutes: 80
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Run
# run: |
# cd soutthwest.com/auto-southwest-check-in/auto-southwest-check-in
# pip3 install -r requirements.txt
# python3 southwest.py --verbose 4ZABTR edmund fong