From cacae05736db25a0c5e4df3ece077514b97bb1fe Mon Sep 17 00:00:00 2001 From: Asif Nawaz Date: Mon, 22 Jan 2024 11:04:14 +0000 Subject: [PATCH] ci(f): f --- .../self-test-auto-merge-dependabot.yml | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/self-test-auto-merge-dependabot.yml b/.github/workflows/self-test-auto-merge-dependabot.yml index da51a4f..1bd8a32 100644 --- a/.github/workflows/self-test-auto-merge-dependabot.yml +++ b/.github/workflows/self-test-auto-merge-dependabot.yml @@ -10,7 +10,7 @@ jobs: name: 🧪 Linting runs-on: ${{ vars.RTLDEV_MW_CI_OS }} permissions: - contents: read + contents: read steps: - name: Checkout uses: actions/checkout@v4 @@ -26,26 +26,26 @@ jobs: VALIDATE_MARKDOWN: true VALIDATE_ALL_CODEBASE: false GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + dependabot: - if: ${{ github.actor == 'dependabot[bot]' }} - name: Auto-merge Dependabot PR - runs-on: ${{ vars.RTLDEV_MW_CI_OS }} - needs: - - tests - permissions: - contents: write - pull-requests: write - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Enable auto-merge for Dependabot PRs - # (fixes, features but not major upgrades!) - if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' }} - run: gh pr merge --auto -d -r "$PR_URL" - env: - PR_URL: ${{ github.event.pull_request.html_url }} - GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }} + if: ${{ github.actor == 'dependabot[bot]' }} + name: Auto-merge Dependabot PR + runs-on: ${{ vars.RTLDEV_MW_CI_OS }} + needs: + - tests + permissions: + contents: write + pull-requests: write + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + # (fixes, features but not major upgrades!) + if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' }} + run: gh pr merge --auto -d -r "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }}