mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
abddf14bf1
Summary: A recent [Rebase run](https://github.com/facebook/react-native/actions/runs/4724279197/jobs/8381306851) gave following warning: >Node.js 12 actions are *deprecated*. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. So, it makes sense to upgrade to `actions/checkout@v3`. ## Changelog: [GENERAL] [SECURITY] - Bump `actions/checkout` to `v3` Pull Request resolved: https://github.com/facebook/react-native/pull/36937 Test Plan: - ci should be green + the `/rebase` command works as usual. Reviewed By: rshest Differential Revision: D45079793 Pulled By: cortinico fbshipit-source-id: 49e654cf15f6ae7208bf8b277a194ace3fa62aa0
25 lines
775 B
YAML
25 lines
775 B
YAML
name: Automatic Rebase
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
rebase:
|
|
permissions:
|
|
contents: write # for cirrus-actions/rebase to push code to rebase
|
|
pull-requests: read # for cirrus-actions/rebase to get info about PR
|
|
name: Rebase
|
|
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the latest code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
|
|
- name: Automatic Rebase
|
|
uses: cirrus-actions/rebase@1.7
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|