Skip to content

Commit

Permalink
Merge 00807d0 into 014c623
Browse files Browse the repository at this point in the history
  • Loading branch information
niklassiemer committed Jun 7, 2023
2 parents 014c623 + 00807d0 commit e04d13c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/UpdateDependabotPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
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: |
package=$(echo "${{ github.event.pull_request.title }}" | awk '{print $2}')
from=$(echo "${{ github.event.pull_request.title }}" | awk '{print $4}')
to=$(echo "${{ github.event.pull_request.title }}" | awk '{print $6}')
package=$(echo "$PR_TITLE" | awk '{print $2}')
from=$(echo "$PR_TITLE" | awk '{print $4}')
to=$(echo "$PR_TITLE" | awk '{print $6}')
sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment.yml
- name: UpdateDependabotPR commit
run: |
Expand Down

0 comments on commit e04d13c

Please sign in to comment.