Skip to content

Commit

Permalink
Updated changelog generator workflow (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibexa-yuna committed Oct 1, 2021
1 parent 552b8b5 commit d5fe512
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*'
- '!v*-alpha*'

jobs:
provide_changed_packages:
Expand All @@ -26,11 +25,20 @@ jobs:
OUT=$(jq --slurp '[.[].packages[] | select(.name | contains("ezsystems") or contains("ibexa")) | [.name, .version] | { name: (.[0]), version: .[1] }]' composer.lock)
echo "::set-output name=lock::$( echo "$OUT" | sed ':a;N;$!ba;s/\n/%0A/g' )"
- name: Get previous last full release
id: prevfull
run: |
OUT=$(hub api /repos/${{ github.repository }}/releases | jq -r -s '[ .[][].tag_name | select(. | contains("rc") or contains("beta") or contains("alpha") | not) ] | first')
echo "::set-output name=tag::$( echo "$OUT" | sed ':a;N;$!ba;s/\n/%0A/g' )"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get previous release tag based on type
id: prevrelease
uses: ibexa/version-logic-action@master
with:
currentTag: ${{ env.BUILD_TAG }}
prevFullTag: ${{ steps.prevfull.outputs.tag }}

# checkout previous tag
- uses: actions/checkout@v2
Expand Down

0 comments on commit d5fe512

Please sign in to comment.