File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 50
50
echo "channel=pr_${{ github.event.pull_request.number }}" >> "${GITHUB_OUTPUT}"
51
51
echo 'Extracting version.'
52
52
echo "version=$(cat src/libxrpl/protocol/BuildInfo.cpp | grep "versionString =" | awk -F '"' '{print $2}')" >> "${GITHUB_OUTPUT}"
53
+ - name : Calculate conan reference
54
+ id : conan_ref
55
+ run : |
56
+ echo "conan_ref=${{ steps.generate.outputs.version }}@${{ steps.generate.outputs.user }}/@${{ steps.generate.outputs.channel }}" >> "${GITHUB_OUTPUT}"
53
57
- name : Add Conan remote
54
58
run : |
55
59
echo "Adding Conan remote '${{ inputs.conan_remote_name }}' at ${{ inputs.conan_remote_url }}."
61
65
- name : Upload package
62
66
run : |
63
67
conan export --user=${{ steps.generate.outputs.user }} --channel=${{ steps.generate.outputs.channel }} .
64
- conan upload --confirm --check --remote=${{ inputs.conan_remote_name }} xrpl/${{ steps.generate .outputs.version }}@${{ steps.generate.outputs.user }}/${{ steps.generate.outputs.channel }}
68
+ conan upload --confirm --check --remote=${{ inputs.conan_remote_name }} xrpl/${{ steps.conan_ref .outputs.conan_ref }}
65
69
outputs :
66
- channel : ${{ steps.generate.outputs.channel }}
67
- version : ${{ steps.generate.outputs.version }}
70
+ conan_ref : ${{ steps.conan_ref.outputs.conan_ref }}
68
71
69
72
notify :
70
73
needs : upload
76
79
run : |
77
80
gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
78
81
/repos/xrplf/clio/dispatches -f "event_type=check_libxrpl" \
79
- -F "client_payload[version ]=${{ needs.upload.outputs.version }}@${{ needs.upload.outputs.user }}/${{ needs.upload.outputs.channel }}" \
80
- -F "client_payload[pr ]=${{ github.event.pull_request.number }}"
82
+ -F "client_payload[conan_ref ]=${{ needs.upload.outputs.conan_ref }}" \
83
+ -F "client_payload[pr_url ]=${{ github.event.pull_request.html_url }}"
You can’t perform that action at this time.
0 commit comments