Add names for pull request workflow jobs

This commit is contained in:
William Brawner 2023-09-27 06:43:13 -06:00
parent ff7b80a273
commit 2f29f5d34a

View file

@ -6,7 +6,8 @@ permissions:
pull-requests: write
jobs:
build:
test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -14,12 +15,13 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Run checks with Gradle Wrapper
run: ./gradlew check
automerge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'wbrawner' }}
steps:
- name: Enable auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# automerge:
# name: Enable automerge
# runs-on: ubuntu-latest
# if: ${{ github.actor == 'wbrawner' }}
# steps:
# - name: Enable auto-merge
# run: gh pr merge --auto --merge "$PR_URL"
# env:
# PR_URL: ${{github.event.pull_request.html_url}}
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}