From b4d8d99c9eef3f1c4e807792ae9f03a4be6f295c Mon Sep 17 00:00:00 2001 From: samwaseda Date: Sun, 18 Aug 2024 19:26:56 +0000 Subject: [PATCH] update dependabot --- .github/workflows/UpdateDependabotPR.yml | 32 ------------------------ .github/workflows/dependabot-pr.yml | 10 ++++++++ 2 files changed, 10 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/UpdateDependabotPR.yml create mode 100644 .github/workflows/dependabot-pr.yml diff --git a/.github/workflows/UpdateDependabotPR.yml b/.github/workflows/UpdateDependabotPR.yml deleted file mode 100644 index 98702d17..00000000 --- a/.github/workflows/UpdateDependabotPR.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: UpdateDependabotPR - -on: - pull_request_target: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - if: (github.actor == 'dependabot[bot]') - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.ref }} # Check out the head of the actual branch, not the PR - fetch-depth: 0 # otherwise, you will fail to push refs to dest repo - token: ${{ secrets.DEPENDABOT_WORKFLOW_TOKEN }} - - name: UpdateEnvironmentFile - env: - PR_TITLE: ${{ github.event.pull_request.title }} - shell: bash -l {0} - run: | - python .ci_support/update_environment.py $PR_TITLE - - name: UpdateDependabotPR commit - run: | - git config --local user.email "pyiron@mpie.de" - git config --local user.name "pyiron-runner" - git commit -m "[dependabot skip] Update environment" -a - - name: UpdateDependabotPR push - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.DEPENDABOT_WORKFLOW_TOKEN }} - branch: ${{ github.event.pull_request.head.ref }} diff --git a/.github/workflows/dependabot-pr.yml b/.github/workflows/dependabot-pr.yml new file mode 100644 index 00000000..fa964cab --- /dev/null +++ b/.github/workflows/dependabot-pr.yml @@ -0,0 +1,10 @@ +name: UpdateDependabotPR + +on: + pull_request_target: + branches: [ main ] + +jobs: + pyiron: + uses: pyiron/actions/.github/workflows/dependabot-pr.yml@actions-3.1.0 + secrets: inherit