Skip to content

Commit e367403

Browse files
authored
Fix auto release flow (#485)
1 parent 905318a commit e367403

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/major-upgrade.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ jobs:
122122
- name: Update source codes
123123
if: steps.next_moodle.outputs.ready == 'true' && inputs.dryrun == 'false'
124124
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 }}
131131
./upgrade.sh
132132
133133
- name: Create PR

upgrade.sh

-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
#!/usr/bin/env sh
22

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-
103
sed -i "s/$OLD_BRANCH/$NEW_BRANCH/g" Dockerfile
114
sed -i "s/$OLD_COMMIT/$NEW_COMMIT/g" Dockerfile
125
sed -i "s/moodle-$OLD_VERSION/moodle-$NEW_VERSION/g" README.md

0 commit comments

Comments
 (0)