This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
build(deps): bump actions/checkout from 3 to 4 #1138
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: PR / Metadata | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened, edited] | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
validate-metadata: | |
name: Validate metadata | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- name: Run yarn commitlint --from=pull_request.title | |
run: echo "${{ github.event.pull_request.title }}" | yarn commitlint | |
auto-merge: | |
name: Auto-merge | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dependabot/[email protected] | |
id: dependabot-metadata | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }} | |
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |