From 608623f336547c09aa558f7cda42f939adeceedd Mon Sep 17 00:00:00 2001 From: Chisel Date: Sun, 27 Aug 2023 20:29:11 +0100 Subject: [PATCH] chore: remote janky deopenabot action --- .../workflows/dependabot-changelog-entry.yml | 103 ------------------ 1 file changed, 103 deletions(-) delete mode 100644 .github/workflows/dependabot-changelog-entry.yml diff --git a/.github/workflows/dependabot-changelog-entry.yml b/.github/workflows/dependabot-changelog-entry.yml deleted file mode 100644 index cfe58f97..00000000 --- a/.github/workflows/dependabot-changelog-entry.yml +++ /dev/null @@ -1,103 +0,0 @@ ---- -name: Add Change Entry For Dependabot Update - -# yamllint disable rule:truthy -on: - pull_request: - types: [opened, labeled] - branches: [main] - -# only allow one of these to run at a time -concurrency: - group: dependabot-change-entry - cancel-in-progress: false - -permissions: - pull-requests: write - issues: write - repository-projects: write - -jobs: - dependabot-change-entry: - runs-on: ubuntu-latest - # yamllint disable-line rule:line-length - if: ${{ (github.actor == 'dependabot[bot]') || (github.event.label.name == 'dependabot-run-comment') }} - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - # The following properties are now available: - # - steps.metadata.outputs.dependency-names - # - steps.metadata.outputs.dependency-type - # - steps.metadata.outputs.update-type - - - uses: de-vri-es/setup-git-credentials@v2 - with: - credentials: ${{secrets.CHISEL_GITHUB_TOKEN}} - - - name: Checkout - uses: actions/checkout@v3 - with: - # yamllint disable-line rule:line-length - ref: ${{ github.event.pull_request.head.ref || github.event.repository.default_branch }} - fetch-depth: 0 - token: ${{ secrets.CHISEL_GITHUB_TOKEN }} - - - run: git config user.name "GitHub Actions" - - run: git config user.email "actions@users.noreply.github.com" - - - name: Install changie - shell: bash - run: | - go install github.com/miniscruff/changie@v1.12.0 - $HOME/go/bin/changie --version - echo "$HOME/go/bin" >> $GITHUB_PATH - - - name: Set Environment Variables - # yamllint disable rule:line-length - run: | - echo "CHANGIE_REPO_URL=${{ github.event.repository.html_url }}" >> $GITHUB_ENV - # yamllint enable rule:line-length - - - name: Add changelog entry - shell: bash - # yamllint disable rule:line-length - run: | - set -x - # we want to use the first commit in the branch, as this will be the - # one created by dependabot - commit_summary="$(git log --pretty=format:%s $(git merge-base HEAD origin/${{github.event.repository.default_branch}})..HEAD | tail -1)" - # abort if body is whitespace only - if [[ -z "${commit_summary// }" ]]; then - echo "Commit summary is empty, aborting" - exit 64 - fi - changie new --body "${commit_summary}" --kind Dependencies --custom GithubIssue=${{github.event.pull_request.number}} - git add .changes/unreleased/ - git diff --staged - git commit -m "Add changelog entry for dependabot update: $commit_summary" - git show - git push origin HEAD:${{ github.event.pull_request.base.ref }} - # yamllint enable rule:line-length - - # Find the PR associated with this push, if there is one. - - uses: jwalton/gh-find-current-pr@v1 - id: findPr - with: - # Can be "open", "closed", or "all". Defaults to "open". - state: open - - # This will echo "Your PR is 7", or be skipped if there is no current PR. - - run: echo "Your PR is ${PR}" - if: success() && steps.findPr.outputs.number - env: - PR: ${{ steps.findPr.outputs.pr }} - - - uses: peter-evans/enable-pull-request-automerge@v3 - # && false to make sure this doesn't run for now - if: success() && steps.findPr.outputs.number && false - with: - token: ${{ secrets.CHISEL_GITHUB_TOKEN }} - pull-request-number: ${{ steps.findPr.outputs.pr }}