diff --git a/.github/auto-merge.yml b/.github/auto-merge.yml new file mode 100644 index 0000000..ca80427 --- /dev/null +++ b/.github/auto-merge.yml @@ -0,0 +1,11 @@ +- match: + dependency_type: all + update_type: security:minor # includes patch updates! + +- match: + dependency_type: development + update_type: semver:minor # includes patch updates! + +- match: + dependency_type: production + update_type: semver:patch diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4f2fd18 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 + +updates: + - package-ecosystem: gomod + directory: "/" + schedule: + interval: daily + time: "03:00" + timezone: UTC + labels: + - dependencies diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..412cf49 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,15 @@ +name: Dependabot Automerge Check +on: + - pull_request_target + +jobs: + auto-merge: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Automerge dependabot dependencies + uses: ahmadnassri/action-dependabot-auto-merge@v2 + with: + github-token: ${{ secrets.OPENHPI_BOT_TOKEN }}