author | Nemo <commits@captnemo.in> | 2023-03-27 13:52:18.0 +05:30:00 |
---|---|---|
committer | Nemo <commits@captnemo.in> | 2023-03-27 13:53:22.0 +05:30:00 |
commit | 6dc97ced0c3797a4c691d1e950303acf14875945 [patch] |
|
tree | b002c7b7735b6159ff9af502ac00276d4792f330 |
|
parent | cfca844319a156482b3f87d0911c36ab75f2fbc4 |
|
download | 6dc97ced0c3797a4c691d1e950303acf14875945.tar.gz |
Enable auto-merges for kuvera lookup updates
Diff
.github/dependabot.yml | 23 +++++++++++++++++++++++ .github/workflows/auto-merge.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b16f3ff 100644 --- /dev/null +++ a/.github/dependabot.yml @@ -1,0 +1,23 @@ # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: - package-ecosystem: "bundler" vendor: true directory: "/" # Location of package manifests schedule: interval: "daily" # This updates the _data/release-data submodule once a day # which itself is updated twice a day. - package-ecosystem: "gitsubmodule" directory: "/" schedule: interval: "daily" - package-ecosystem: "github-actions" directory: "/" schedule: interval: "daily" diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..e900809 100644 --- /dev/null +++ a/.github/workflows/auto-merge.yml @@ -1,0 +1,29 @@ name: Dependabot auto-merge kuvera lookup updates on: pull_request # Based on https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request permissions: pull-requests: write contents: write jobs: dependabot: runs-on: ubuntu-latest if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Dependabot metadata id: metadata uses: dependabot/fetch-metadata@v1.3.6 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - uses: actions/checkout@v3 name: Clone self repository with: ref: ${{ github.head_ref }} submodules: true - name: Enable auto-merge for Dependabot PRs for release data if: ${{contains(steps.metadata.outputs.dependency-names, '_data/kuvera-lookup')}} run: gh pr merge --auto --rebase "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}