Skip to content

Commit

Permalink
Update makerpm.yml
Browse files Browse the repository at this point in the history
It seems "set-output" needs to be a one-per-step thing.
  • Loading branch information
Edgeberg authored May 11, 2022
1 parent c3365a9 commit 0410fd8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/makerpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,23 @@ jobs:
name: Compute Binary RPM Name
runs-on: ubuntu-latest
outputs:
brpmname: ${{ steps.bash-magic.outputs.rpmname }}
thistag: ${{ steps.bash-magic.outputs.tagname }}
brpmname: ${{ steps.bash-rpmname.outputs.rpmname }}
thistag: ${{ steps.bash-tagname.outputs.tagname }}

steps:
- name: Do some bash magic
id: bash-magic
- name: Get rpm name via bash command
id: bash-rpmname
env:
REPOS_NAME: ${{ github.repository }}
TAGVER: ${{ github.ref }}
run:
echo "::set-output name=rpmname::${REPOS_NAME#*/}-${TAGVER##*/v}.el7.noarch.rpm"

- name: Get plain tag name via bash command
id: bash-tagname
env:
TAGVER: ${{ github.ref }}
run:
echo "::set-output name=tagname::${TAGVER##*/}"

build:
Expand Down

0 comments on commit 0410fd8

Please sign in to comment.