Skip to content

Commit 989acc2

Browse files
committed
a
1 parent 85d0f69 commit 989acc2

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/actions/mpl-head/action.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,16 @@ runs:
2222
git pull
2323
git submodule update --init --recursive
2424
cat project.properties
25-
26-
- name: Update top-level project.properties file in MPL
27-
if: inputs.update-and-regenerate-mpl == 'true'
28-
shell: bash
29-
working-directory: submodules/MaterialProviders
30-
run: |
31-
make generate_properties_file
32-
33-
# Update the project.properties file so that we pick up the right runtimes etc.,
34-
# in cases where inputs.dafny is different from the current value in that file.
35-
- name: Generate smithy-dafny-project.properties file
36-
if: inputs.update-and-regenerate-mpl == 'true'
37-
env:
38-
DAFNY_VERSION: ${{ inputs.dafny }}
39-
shell: bash
40-
run: |
41-
make generate_properties_file
25+
26+
- name: Get the MPL version from the MPL submodule
27+
id: read_property
28+
uses: christian-draeger/[email protected]
29+
with:
30+
path: "submodules/MaterialProviders//project.properties"
31+
properties: "mplVersion"
4232

4333
- name: Update top-level project.properties file
44-
if: inputs.update-and-regenerate-mpl == 'true'
4534
shell: bash
4635
run: |
47-
awk -F= '!a[$1]++' smithy-dafny-project.properties project.properties > merged.properties
48-
mv merged.properties project.properties
36+
echo ${{ steps.read_property.outputs.mplVersion }}
4937
cat project.properties

0 commit comments

Comments
 (0)