Skip to content

Commit

Permalink
chore: Sync common workflows (#58)
Browse files Browse the repository at this point in the history
This is an automated sync of common workflows for this organization.
The upstream source is:

shaka-project/shaka-github-tools@4245160

Co-authored-by: Shaka Bot <[email protected]>
  • Loading branch information
shaka-bot and shaka-bot authored Sep 2, 2023
1 parent 7598b70 commit 8b5e40f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:

- name: Update Issues
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: |
cd update-issues
npm ci
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/validate-pr-title.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
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:
# 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
# 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:
types:
- opened
Expand All @@ -30,6 +22,6 @@ jobs:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8b5e40f

Please sign in to comment.