Getting Halts weekend #1329
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
name: Getting Halts weekend | |
# Don't want to burn my private minutes at this point | |
on: | |
push: | |
branches: | |
- master | |
- main | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '30 2 * * *' | |
env: | |
DLI_LINKEDIN_API: ${{ secrets.DLI_LINKEDIN_API }} | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7.1' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
- name: Install | |
run: pip install -r requirements.txt | |
- name: Run Script to call external api | |
run: python call_api.py | |
- uses: sarisia/actions-status-discord@v1 | |
if: failure() | |
with: | |
webhook: ${{ secrets.DISCORD_CODE_STATUS_WEBHOOK }} | |
status: ${{ job.status }} | |
title: ${{github.repository}} | |
description: "Build and deploy to GitHub Pages" | |
nofail: false | |
nocontext: false | |
noprefix: false | |
color: 0xff0000 | |
username: GitHub Actions |