diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2e96b29..e46afa5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,14 @@ version: 2 updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + time: "08:00" + timezone: "Europe/Paris" + labels: + - ":game_die: dependencies" + - ":robot: bot" - package-ecosystem: "npm" directory: "/" schedule: diff --git a/.github/labels.yml b/.github/labels.yml index c9034bb..3444025 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,4 +1,8 @@ ## more info https://github.com/crazy-max/ghaction-github-labeler +- # automerge + name: ":bell: automerge" + color: "8f4fbc" + description: "" - # bot name: ":robot: bot" color: "69cde9" diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml deleted file mode 100644 index a474bdb..0000000 --- a/.github/workflows/automerge.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: automerge - -on: - pull_request: - types: - - labeled - - reopened - - unlocked - - unlabeled - - synchronize - pull_request_review: - types: - - submitted - check_suite: - types: - - completed - status: {} - -jobs: - dependabot: - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' - steps: - - - name: Automerge - uses: pascalgn/automerge-action@v0.8.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - MERGE_LABELS: - MERGE_METHOD: squash - MERGE_COMMIT_MESSAGE: automatic - - - name: Dispatch event - uses: actions/github-script@v1 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - github.repos.createDispatchEvent({ - ...context.repo, - event_type: 'ncc' - }) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index a0bd92d..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: lint - -on: - pull_request: - paths: - - '.github/workflows/lint.yml' - - 'src/*' - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Node - uses: actions/setup-node@v1 - - - name: Setup TS - run: npm install tslint typescript -g - - - name: Lint check - run: tslint './src/*.ts' diff --git a/.github/workflows/ncc.yml b/.github/workflows/ncc.yml deleted file mode 100644 index 966d39b..0000000 --- a/.github/workflows/ncc.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: ncc - -on: - repository_dispatch: - types: - - ncc - push: - branches: - - dev - - releases/v* - paths-ignore: - - '**.md' - -jobs: - ncc: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Build - run: | - npm install - npm run format - npm run build - - - name: Set up Git - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config user.name GitHub - git config user.email noreply@github.com - git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - - - name: Commit and push changes - run: | - git add . - if output=$(git status --porcelain) && [ ! -z "$output" ]; then - git commit --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" --message "Update generated content" - git push - fi