Skip to content

Commit

Permalink
hudson: Setup GitHub Actions
Browse files Browse the repository at this point in the history
Change-Id: I35266ac0ad3a243923972c3707eb4832527e058f
  • Loading branch information
luk1337 committed Feb 11, 2024
1 parent 7808293 commit 14f1567
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gerrit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: gerrit checks

on:
workflow_dispatch:
inputs:
ref:
type: string
gerrit-ref:
type: string
change:
type: string

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: lineageos-infra/fetch-gerrit-change@main
with:
gerrit-ref: ${{ inputs.gerrit-ref }}
ref: ${{ inputs.ref }}

- name: Check
run: |
for file in updater/*.json; do
echo "Checking $file"
jq -e . $file > /dev/null
done
- uses: lineageos-infra/gerrit-vote@main
if: always()
with:
auth: ${{ secrets.GERRIT_VOTE_CREDS }}
change: ${{ inputs.change }}
ref: ${{ inputs.ref }}

0 comments on commit 14f1567

Please sign in to comment.