Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IBX-5077 #688

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: Gather latest package information
run: |
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' )"
echo "lock=$( echo "$OUT" | sed ':a;N;$!ba;s/\n/%0A/g' )" >> $GITHUB_OUTPUT

- name: Get previous release tag based on type
id: prevrelease
Expand All @@ -42,7 +42,7 @@ jobs:
name: Gather previous package information
run: |
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' )"
echo "lock=$( echo "$OUT" | sed ':a;N;$!ba;s/\n/%0A/g' )" >> $GITHUB_OUTPUT

# do some magic comparing those outputs
- id: output_data
Expand All @@ -57,7 +57,7 @@ jobs:
${{ steps.currentLock.outputs.lock }}
EOF
OUT=$(jq -s 'flatten | group_by(.name)' $FILE1 $FILE2 | jq -s '[ .[][] | {name: (.[0].name), versions: [ .[0].version, .[1].version ] | unique} | select(.versions | length > 1) ]')
echo "::set-output name=matrix::$( echo "$OUT" | sed ':a;N;$!ba;s/\n/%0A/g' )"
echo "matrix=$( echo "$OUT" | sed ':a;N;$!ba;s/\n/%0A/g' )" >> $GITHUB_OUTPUT

# this step is needed, so the output gets to the next defined job
outputs:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
python main.py >> generator_output
echo '' >> generator_output
done
echo "::set-output name=output::$( cat generator_output | sed ':a;N;$!ba;s/\n/%0A/g' )"
echo "output=$( cat generator_output | sed ':a;N;$!ba;s/\n/%0A/g' )" >> $GITHUB_OUTPUT

- name: Create Release
id: create_release
Expand Down