Skip to content

Adding a lint step to the MD docs sync GHA #273

Adding a lint step to the MD docs sync GHA

Adding a lint step to the MD docs sync GHA #273

name: GHA Workflow Validation
on:
pull_request:
merge_group:
jobs:
validate-workflows:
name: Validate Workflow Changes
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
# Skip on merge group events
if: ${{ github.event_name == 'pull_request' }}
steps:
# checkout repo if not pull_request trigger (disabled for now)
- name: Checkout Repo
if: github.event_name != 'pull_request'
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Run gha-workflow-validator action
uses: smartcontractkit/.github/actions/gha-workflow-validator@ac1fa37beb1436800d74b7717f614a12137a70a6 # [email protected]
env:
GITHUB_TOKEN: ${{ github.token }}