Skip to content

Commit f097577

Browse files
authored
Merge pull request #759 from pimoroni/ci/version-info
CI: Set MICROPY_GIT_TAG for #752.
2 parents b512bdc + c885789 commit f097577

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/micropython.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [created]
88

99
env:
10-
MICROPYTHON_VERSION: 38e7b842c6bc8122753cbf0845eb141f28fbcb72
10+
MICROPYTHON_VERSION: v1.20.0
1111

1212
jobs:
1313
deps:
@@ -125,12 +125,18 @@ jobs:
125125
with:
126126
submodules: true
127127
path: pimoroni-pico-${{ github.sha }}
128+
129+
- name: Set MicroPython Version Env Vars
130+
shell: bash
131+
run: |
132+
echo "MICROPY_GIT_TAG=$MICROPYTHON_VERSION, ${{matrix.name}} ${{github.event.release.tag_name || github.sha}}" >> $GITHUB_ENV
133+
echo "MICROPY_GIT_HASH=$MICROPYTHON_VERSION-${{github.event.release.tag_name || github.sha}}" >> $GITHUB_ENV
128134
129135
- name: "HACK: Revert Pico SDK Patch" # Avoid an already-patched MicroPython tree breaking our build
130136
shell: bash
131-
working-directory: micropython
137+
working-directory: micropython/lib/pico-sdk
132138
run: |
133-
git checkout lib/pico-sdk
139+
git checkout .
134140
135141
- name: "HACK: Pico SDK Patch"
136142
if: matrix.patch == true

0 commit comments

Comments
 (0)