Docker Available #194238
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: Docker Available | |
on: status | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump Github context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Checkout | |
if: endsWith(github.event.context, 'docker_build') && github.event.state == 'success' | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
if: endsWith(github.event.context, 'docker_build') && github.event.state == 'success' | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
- name: Run Notify Script | |
if: endsWith(github.event.context, 'docker_build') && github.event.state == 'success' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo "==== $(date): Starting pipenv setup... ====" | |
python -m pip install --upgrade pip | |
pip install pipenv | |
pwd | |
cd "$GITHUB_WORKSPACE/.github/workflows/notify-docker-available" | |
pipenv install | |
echo "==== $(date): Running notify... ====" | |
pipenv run ./notify.py -e "$GITHUB_EVENT_PATH" |