Skip to content

Fork hardware/google/camera (#1289) #99

Fork hardware/google/camera (#1289)

Fork hardware/google/camera (#1289) #99

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