diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..6478d21 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,13 @@ +name: Auto-merge Dependabot +on: pull_request + +jobs: + automerge: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} + pull-request-number: ${{ github.event.pull_request.number }} + merge-method: squash diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7822313 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '20' + distribution: 'temurin' + - name: Build with Gradle + uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} + pull-request-number: ${{ github.event.pull_request.number }} + merge-method: squash diff --git a/lib/auto.js b/lib/auto.js index d99d926..a63b489 100644 --- a/lib/auto.js +++ b/lib/auto.js @@ -1,4 +1,4 @@ -// @ts-check +// @ts-checkttttttt 'use strict'; let fs = require('fs'); // Non-const enables test mocking