chore: Sync common workflows (#1262)

This is an automated sync of common workflows for this organization.
The upstream source is:

4245160a0b

Co-authored-by: Shaka Bot <shaka-bot@users.noreply.github.com>
This commit is contained in:
Shaka Bot 2023-09-01 19:26:57 -07:00 committed by GitHub
parent f264befe86
commit b7660590a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View File

@ -23,7 +23,8 @@ jobs:
- name: Update Issues - name: Update Issues
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use SHAKA_BOT_TOKEN if found, otherwise the default GITHUB_TOKEN.
GITHUB_TOKEN: ${{ secrets.SHAKA_BOT_TOKEN || secrets.GITHUB_TOKEN }}
run: | run: |
cd update-issues cd update-issues
npm ci npm ci

View File

@ -1,19 +1,11 @@
name: Validate PR Title name: Validate PR Title
# We recommend that maintainers use this Chrome/Firefox extension so that
# squashed PRs will have the merged commit message default to the PR title and
# description: https://github.com/zachwhaley/squashed-merge-message
#
# This avoids the need to amend commits after the fact to match the desired PR
# syntax. As long as the PR itself is properly-formatted, this extension will
# help you commit the right format to the repo, too. This, in turn, feeds the
# changelog and release workflows.
on: on:
# NOTE: The automated PRs from release-please-action do not seem to trigger # NOTE: The automated PRs from release-please-action do not seem to trigger
# any of the default PR triggers (opened, synchronize, reopened). So we need # any of the default PR triggers (opened, synchronize, reopened). So we need
# additional types. This is a good set that makes it easy to trigger the # additional types. This is a good set that makes it easy to trigger the
# workflow manually if needed. # workflow manually if needed. This is not neccessary if your release-please
# workflow uses a personal access token (PAT) from Shaka Bot.
pull_request_target: pull_request_target:
types: types:
- opened - opened
@ -30,6 +22,6 @@ jobs:
name: Validate PR Title name: Validate PR Title
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: amannn/action-semantic-pull-request@v4 - uses: amannn/action-semantic-pull-request@v5
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}