Skip to content

Commit

Permalink
ci: try git for-each-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSensor committed Sep 29, 2019
1 parent daab6f0 commit b308940
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Expand Up @@ -47,10 +47,12 @@ jobs:
with: { name: grammar, path: dist }
- name: Releases
if: contains(github.ref, 'refs/tags')
run: sudo hub release create --draft \
--attach dist/Scdlang.tmLanguage.json \
--attach dist/Scdlang.tmLanguage \
--attach dist/Scdlang.sublime-syntax \
--attach dist/syntect/syntaxes.bin \
--message $(git tag --list ${GITHUB_REF##*/} --format='%(contents:subject)%0a%(contents:body)') \
${GITHUB_REF##*/}
run: git for-each-ref --format="%(contents:subject)%0a%0a%(contents:body)" ${GITHUB_REF} | \
sudo hub release create -F- --draft \
--attach dist/Scdlang.tmLanguage.json \
--attach dist/Scdlang.tmLanguage \
--attach dist/Scdlang.sublime-syntax \
--attach dist/syntect/syntaxes.bin \
${GITHUB_REF##*/}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b308940

Please sign in to comment.