-
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.
Create nellis-items-to-search-for-christie.yml
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 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,43 @@ | ||
## Sends a slack message | ||
## Docs: | ||
## * https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges | ||
## | ||
name: "Slack - nellis - christie - items to search for" | ||
|
||
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 | ||
schedule: | ||
## Cron time is in UTC: 5pm UTC is 10am PST | ||
- cron: '0 18 * * *' | ||
|
||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
SLACK_CHANNEL: 'C08BJ57TNJZ' # nellis-christie | ||
|
||
# Enable debug output | ||
DEBUG: false | ||
|
||
|
||
jobs: | ||
check_open_reservations: | ||
# if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup | ||
run: | | ||
pip install slack-sdk | ||
- name: Run Script | ||
run: | | ||
cd ./nellisauction.com/search_for_items | ||
python3 run_python.py items_to_search_for_christie.txt |