WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 019a2de

Browse files
authored
Merge pull request #107 from pyiron/secure_dependabot
Update UpdateDependabotPR.yml
2 parents 070db5f + 8932549 commit 019a2de

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/UpdateDependabotPR.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ jobs:
1515
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
1616
token: ${{ secrets.DEPENDABOT_WORKFLOW_TOKEN }}
1717
- name: UpdateEnvironmentFile
18+
env:
19+
PR_TITLE: ${{ github.event.pull_request.title }}
1820
shell: bash -l {0}
1921
run: |
20-
package=$(echo "${{ github.event.pull_request.title }}" | awk '{print $2}')
21-
from=$(echo "${{ github.event.pull_request.title }}" | awk '{print $4}')
22-
to=$(echo "${{ github.event.pull_request.title }}" | awk '{print $6}')
22+
package=$(echo "$PR_TITLE" | awk '{print $2}')
23+
from=$(echo "$PR_TITLE" | awk '{print $4}')
24+
to=$(echo "$PR_TITLE" | awk '{print $6}')
2325
sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment-openmpi.yml
2426
sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment-mpich.yml
2527
- name: UpdateDependabotPR commit

0 commit comments

Comments
 (0)