Skip to content

Commit

Permalink
feat: ci workflow validator (#13298)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikburt committed May 29, 2024
1 parent 3a14297 commit 8475e8b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gha-workflow-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: GHA Workflow Validation

on:
pull_request:

jobs:

validate-worfklow-changes:
name: Validate Workflow Changes
permissions:
contents: read
pull-requests: write
actions: read
runs-on: ubuntu-latest
steps:
- name: GHA Workflow Validator
uses: smartcontractkit/.github/actions/gha-workflow-validator@7d4c3591affba99d0b073e527569ec6638518d41 # gha-workflow-validator@0.1.0
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Collect Metrics
if: always()
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@dea9b546553cb4ca936607c2267a09c004e4ab3f # v3.0.0
with:
id: lint-gh-workflows
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
this-job-name: Validate Workflow Changes
continue-on-error: true

0 comments on commit 8475e8b

Please sign in to comment.