Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1e204e9a92...ec3a7ce113)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: Autoupdate branch
|
|
|
|
# **What it does**: The next pull request in the merge queue will get its
|
|
# branch updated with main. Only updating one branch ensures that pull requests
|
|
# in the queue are merged sequentially.
|
|
# **Why we have it**: So we don't have to watch pull requests and click
|
|
# update branch 1000x.
|
|
# **Who does it impact**: Our health.
|
|
#
|
|
# The merge queue consists of any pull requests with automerge enabled and
|
|
# are mergeable. There is a label that can be used to skip to the front of
|
|
# the queue (`skip-to-front-of-merge-queue`).
|
|
#
|
|
# This workflow is triggered when a `push` event occurs ON the `main` branch
|
|
# (e.g. a PR was merged or a force-push was done).
|
|
#
|
|
# This workflow runs on all PRs created from source branches within the
|
|
# public and private docs repos but is won't work for PRs created from
|
|
# forked repos.
|
|
#
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
autoupdate:
|
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
|
name: autoupdate
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repo content
|
|
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
|
|
with:
|
|
node-version: 16.13.x
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Update next PR in queue
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }}
|
|
run: node .github/actions-scripts/update-merge-queue-branch.js
|