Gerrit Group permissions #9941
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 permissions | |
on: | |
schedule: | |
- cron: "0 * * * *" | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
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 }} | |
LOG_LEVEL: ${{ github.event.input.logLevel }} | |
run: | | |
pip install -r requirements.txt | |
python cron_group_perms.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 |