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 7, 2023
1 parent eb059d2 commit a7827e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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"
16 changes: 15 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
Expand All @@ -21,4 +24,15 @@ jobs:
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' }}
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 a7827e0

Please sign in to comment.