diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6ebae6b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2925bcb..b2a0094 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -74,6 +74,26 @@ jobs: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }} + # Automerge: + # needs: [Test, Lint] + # runs-on: ubuntu-latest + # if: | + # github.actor == 'dependabot[bot]' && + # github.event_name == 'pull_request' && + # startsWith(github.event.pull_request.title, 'chore(deps-dev):') + # steps: + # - name: '@dependabot merge' + # uses: actions/github-script@v2 + # with: + # github-token: ${{secrets.GH_TOKEN}} + # script: | + # await github.issues.createComment({ + # owner: context.payload.repository.owner.login, + # repo: context.payload.repository.name, + # issue_number: context.payload.pull_request.number, + # body: '@dependabot merge' + # }) + Skip: if: contains(github.event.head_commit.message, '[skip ci]') runs-on: ubuntu-latest diff --git a/.github/workflows/bump_deps.yml b/.github/workflows/bump_deps.yml deleted file mode 100644 index 3d98872..0000000 --- a/.github/workflows/bump_deps.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Bump_Dependencies - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - Bump_Dependencies: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2-beta - with: - node-version: "14" - - run: | - npm ci - npm run bump - npm install - - uses: peter-evans/create-pull-request@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: Update dependencies - title: "[AUTO] Update dependencies" - labels: Dependencies - branch: "Bump"