Skip to content

Commit 79b4f2c

Browse files
committed
fix: silent make -C
1 parent 8ad5a60 commit 79b4f2c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/pkg.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
type: string
99
jobs:
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 }}

0 commit comments

Comments
 (0)