Skip to content

Add auto merge action #126

Add auto merge action

Add auto merge action #126

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: pre-merge
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
pull_request:
branches: ["master"]
paths-ignore:
- .github/**
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
api-test:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: label
uses: actions/labeler@v5.0.0-alpha.1
automerge:

Check failure on line 25 in .github/workflows/premerge.yml

View workflow run for this annotation

GitHub Actions / pre-merge

Invalid workflow file

The workflow is not valid. .github/workflows/premerge.yml (Line: 25, Col: 9): Unexpected value 'automerge'
- py3d/**
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: install deps
run: |
python3 -m pip install --upgrade pip
python3 -m pip install jupyterlab sympy pillow scipy
- name: install py3d
run: python3 -m pip install -e py3d
- name: test
run: python3 test.py -d docs
- name: commit docs
run: |
git config user.email "hh11698@163.com"
git config user.name "Tumiz"
git add docs py3d/README.md README.md
git commit -m "update docs"
git push
- name: Merge pull requests (automerge-action)
uses: pascalgn/automerge-action@v0.15.6
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "automerge,!work in progress"
MERGE_METHOD: "squash"
MERGE_COMMIT_MESSAGE: "pull-request-title"