File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,13 @@ jobs:
72
72
- name : Checkout
73
73
uses : actions/checkout@v4
74
74
75
+ - name : Extract CLI version from tag
76
+ run : echo "CLI_VERSION=$(echo '${{ github.event.inputs.tag }}' | tr -d ' \r\n' | sed 's/^[^0-9]*//')" >> $GITHUB_ENV
77
+
75
78
- name : Download release binary
76
79
run : |
77
80
wget --header='Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
78
- https://github.com/${{ github.repository }}/releases/download/${{ github.event.inputs.tag }}/railway-${{ github.event.inputs.tag }}-x86_64-unknown-linux-musl.tar.gz -O - | tar xvfz -
81
+ https://github.com/${{ github.repository }}/releases/download/v ${{ env.CLI_VERSION }}/railway-v ${{ env.CLI_VERSION }}-x86_64-unknown-linux-musl.tar.gz -O - | tar xvfz -
79
82
80
83
- name : Test run the binary
81
84
run : ./railway --version
93
96
with :
94
97
context : .
95
98
push : true
96
- tags : ${{ env.IMAGE_BASE_TAG }}:${{ github.event.inputs.tag }}, ${{ env.IMAGE_BASE_TAG }}:latest
99
+ tags : ${{ env.IMAGE_BASE_TAG }}:${{ env.CLI_VERSION }}, ${{ env.IMAGE_BASE_TAG }}:latest
You can’t perform that action at this time.
0 commit comments