Skip to content

Commit

Permalink
Update UpdateDependabotPR.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
niklassiemer authored Jun 7, 2023
1 parent 070db5f commit 8932549
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-openmpi.yml
sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment-mpich.yml
- name: UpdateDependabotPR commit
Expand Down

0 comments on commit 8932549

Please sign in to comment.