小编Ani*_*rma的帖子

GitHub Actions 自动批准无法处理 GitHub Actions 机器人创建的拉取请求

我在 GitHub 存储库中使用两个工作流程。

第一个工作流程由每次推送触发dev,并在新分支内提升版本bump-version并创建新的拉取请求dev


name: bump-version
on: 
  push:
    branches:
      - 'dev'

jobs:
  bumpVersionNumber:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: actions/setup-node@v1
        with:
          node-version: 10
      - run: npm ci

      - name: Bump Version
        run: |
          git config --local user.email "action@github.com"
          git config --local user.name "GitHub Action"
          npm run release

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v4
        with:
          commit-message: bump version
          title: Bump version
          body: Bump version to reflect release changes
          branch: …
Run Code Online (Sandbox Code Playgroud)

github github-actions

7
推荐指数
1
解决办法
3277
查看次数

标签 统计

github ×1

github-actions ×1