File tree 2 files changed +6
-13
lines changed
2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,12 @@ jobs:
122
122
- name : Update source codes
123
123
if : steps.next_moodle.outputs.ready == 'true' && inputs.dryrun == 'false'
124
124
run : |
125
- OLD_BRANCH=${{ steps.current_moodle.outputs.branch }}
126
- OLD_COMMIT=${{ steps.current_moodle.outputs.commit }}
127
- OLD_VERSION=${{ steps.current_moodle.outputs.version }}
128
- NEW_BRANCH=${{ steps.next_moodle.outputs.branch }}
129
- NEW_COMMIT=${{ steps.next_moodle.outputs.commit }}
130
- NEW_VERSION=${{ steps.next_moodle.outputs.version }}
125
+ export OLD_BRANCH=${{ steps.current_moodle.outputs.branch }}
126
+ export OLD_COMMIT=${{ steps.current_moodle.outputs.commit }}
127
+ export OLD_VERSION=${{ steps.current_moodle.outputs.version }}
128
+ export NEW_BRANCH=${{ steps.next_moodle.outputs.branch }}
129
+ export NEW_COMMIT=${{ steps.next_moodle.outputs.commit }}
130
+ export NEW_VERSION=${{ steps.next_moodle.outputs.version }}
131
131
./upgrade.sh
132
132
133
133
- name : Create PR
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
- OLD_BRANCH=$1
4
- OLD_COMMIT=$2
5
- OLD_VERSION=$3
6
- NEW_BRANCH=$4
7
- NEW_COMMIT=$5
8
- NEW_VERSION=$6
9
-
10
3
sed -i " s/$OLD_BRANCH /$NEW_BRANCH /g" Dockerfile
11
4
sed -i " s/$OLD_COMMIT /$NEW_COMMIT /g" Dockerfile
12
5
sed -i " s/moodle-$OLD_VERSION /moodle-$NEW_VERSION /g" README.md
You can’t perform that action at this time.
0 commit comments