File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 19
19
run : |
20
20
if [ "${{ github.event.workflow_run.conclusion }}" = "success" ]; then
21
21
echo "The Causal Testing Framework has been published to PyPI"
22
+ latest_tag=$(git describe --tags --abbrev=0)
23
+ echo "Latest tag: $latest_tag"
24
+ echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV
22
25
else
23
26
echo "The Causal Testing Framework has not been published to PyPI"
24
27
fi
28
+
25
29
26
30
27
31
build_and_upload :
32
36
DAFNI_PARENT_ID : ${{ secrets.DAFNI_PARENT_ID }}
33
37
DAFNI_USERNAME : ${{ secrets.DAFNI_USERNAME }}
34
38
DAFNI_PASSWORD : ${{ secrets.DAFNI_PASSWORD }}
35
- CTF_VERSION : ${{ github.event.release.tag_name }}
36
39
37
40
steps :
38
41
- uses : actions/checkout@v3
51
54
52
55
- name : Upload to DAFNI
53
56
run : |
54
- dafni upload model ./dafni/model_definition.yaml ctf-gh.tar.gz --version-message "Version $ {{ env.CTF_VERSION }}. Uploaded via Github." --parent-id ${DAFNI_PARENT_ID} -y
57
+ dafni upload model ./dafni/model_definition.yaml ctf-gh.tar.gz --version-message "Version {{ env.LATEST_TAG }}. Uploaded via Github." --parent-id ${DAFNI_PARENT_ID} -y
55
58
dafni logout
You can’t perform that action at this time.
0 commit comments