Skip to content

Commit

Permalink
update: Dependabot、Github Actions用設定を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus07424 committed Nov 10, 2023
1 parent 8a246f2 commit 9649012
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ updates:
time: "00:00"
timezone: Asia/Tokyo
open-pull-requests-limit: 10
labels:
- "dependencies"
- "automerge"
18 changes: 16 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,27 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 8
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file pom.xml
- name: Add label
uses: actions/github-script@v6
if: ${{ github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot') }}
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["automerge"]
})

0 comments on commit 9649012

Please sign in to comment.