Skip to content

Docker Available #194206

Docker Available

Docker Available #194206

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"