Bypass reviewdog and install Vale directly #2477
Workflow file for this run
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: Towncrier check | |
on: | |
pull_request: | |
types: [assigned, opened, synchronize, reopened, labeled, unlabeled] | |
branches: | |
- main | |
env: | |
node-version: 18.x | |
jobs: | |
towncrier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Fetch all history | |
fetch-depth: '0' | |
- name: Install towncrier | |
run: pip install towncrier | |
- name: Check for presence of a Change Log fragment (only pull requests) | |
run: | | |
# Fetch the pull request' base branch so towncrier will be able to | |
# compare the current branch with the base branch. | |
# Source: https://github.com/actions/checkout/#fetch-all-branches. | |
git fetch --no-tags origin main | |
towncrier check --compare-with origin/main | |
env: | |
BASE_BRANCH: ${{ github.base_ref }} | |
if: github.event_name == 'pull_request' |