Skip to content

Use actions/cache@v4 #3

Use actions/cache@v4

Use actions/cache@v4 #3

Workflow file for this run

name: ✅ Linters
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
codeowners-validation:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Codeowners File Validation
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/codeowners-validation.yaml@2
jira-lint:
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'amutechtest' && github.ref != 'refs/heads/development' && github.ref != 'refs/heads/main' }}
name: Jira PR Linter
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/jira-lint.yaml@2
with:
fail-on-error: ${{ vars.JIRA_LINT_FAIL_ON_ERROR || 'false' }}
skip-comments: ${{ vars.JIRA_LINT_SKIP_COMMENTS || 'true' }}
secrets:
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
lint:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Simple Lint
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/simple-lint.yaml@2
with:
runPrettier: ${{ vars.SIMPLE_LINT_RUN_PRETTIER != 'false' }}
prettierPlugins: ${{ vars.INSTALL_PRETTIER_PLUGINS }}
secrets:
PAT_ACTION_CI: ${{ secrets.PAT_ACTION_CI }}
do-not-merge:
name: Disable merging on label
if: ${{ contains(github.event.pull_request.labels.*.name, 'do not merge') }}
runs-on: ubuntu-latest
steps:
- name: Check for label
run: |
echo "Pull request is labeled as 'do not merge'"
echo "This workflow fails so that the pull request cannot be merged"
exit 1