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 a1081d0 commit 41a67c4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 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"
40 changes: 23 additions & 17 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: CI with Node.js

on:
push:
Expand All @@ -11,21 +11,27 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build
run: grunt less ect
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Build
run: grunt less ect
- 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 41a67c4

Please sign in to comment.