Fork hardware/google/camera (#1289) #99
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: Gerrit Group Structure | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: "3.x" | |
- env: | |
PYTHONUNBUFFERED: "true" | |
PYTHONDONTWRITEBYTECODE: "true" | |
GERRIT_USER: ${{ secrets.GERRIT_USER }} | |
GERRIT_PASS: ${{ secrets.GERRIT_PASS }} | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
ADMIN_GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} | |
LOG_LEVEL: ${{ github.event.input.logLevel }} | |
run: | | |
pip install -r requirements.txt | |
python update.py | |
- name: notify discord on failure | |
if: ${{ failure() }} | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
MESSAGE: "A job has failed: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
run: | | |
pip install -r requirements.txt | |
python discord.py |