File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 type : string
99jobs :
1010 pkg :
11- name : Build {{ inputs.package }}
11+ name : Build
1212 runs-on : ${{ matrix.os }}
1313 container : ${{ matrix.container }}
1414 strategy :
@@ -37,18 +37,18 @@ jobs:
3737 - name : Checkout code
3838 uses : actions/checkout@v3
3939 - name : Init Hermit
40- run : ./bin/hermit env --raw >> $GITHUB_ENV
40+ uses : cashapp/activate-hermit@v1
4141 - name : Build
4242 id : build
4343 run : |
4444 if [ -f /opt/rh/devtoolset-11/enable ]; then . /opt/rh/devtoolset-11/enable; fi
4545 make -C pkgs/${{ inputs.package }}
46- # Output version for release action
47- echo "version =$(make -C pkgs/${{ inputs.package }} version)" >> $GITHUB_ENV
46+ make -s -C pkgs/${{ inputs.package }} version
47+ echo "VERSION =$(make -s - C pkgs/${{ inputs.package }} version)" >> $GITHUB_OUTPUT
4848 - name : Upload Release
4949 uses : ncipollo/release-action@v1
5050 with :
51- tag : ${{ inputs.package }}-${{ steps.build.outputs.version }}
51+ tag : ${{ inputs.package }}-${{ steps.build.outputs.VERSION }}
5252 allowUpdates : true
53- artifacts : " pkgs/${{ inputs.package }}/${{ inputs.package }}-${{ steps.build.outputs.version }}-*.tar.xz"
53+ artifacts : " pkgs/${{ inputs.package }}/${{ inputs.package }}-${{ steps.build.outputs.VERSION }}-*.tar.xz"
5454 token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments