feat(): table支持树状数据,同层级间排序 #242
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: Renovate renew | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
renew: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
# Only if it's a PR from renovate and about next-core packages. | |
if: >- | |
github.event.sender.login == 'renovate[bot]' && | |
contains(github.event.pull_request.title, 'next-core') | |
steps: | |
# Only if the latest commit is by renovate itself. | |
# (Ignore if easyops-eve pushed a renew commit). | |
- uses: actions/github-script@v6 | |
id: match-commit | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const commit = (await github.rest.git.getCommit({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
commit_sha: context.payload.pull_request.head.sha, | |
})).data; | |
return commit.author.name === 'Renovate Bot'; | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN_EVE }} | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
if: ${{ steps.match-commit.outputs.result }} | |
- run: git checkout --track origin/${{ github.event.pull_request.head.ref }} | |
if: ${{ steps.match-commit.outputs.result }} | |
- run: | | |
git config --global user.name 'easyops-eve' | |
git config --global user.email 'easyops-eve@users.noreply.github.com' | |
if: ${{ steps.match-commit.outputs.result }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: 'https://registry.npmjs.org' | |
cache: yarn | |
if: ${{ steps.match-commit.outputs.result }} | |
- uses: easyops-cn/actions-next-renew@master | |
if: ${{ steps.match-commit.outputs.result }} |