mirror of
https://github.com/DigitalDevices/pvr.octonet.git
synced 2025-03-01 10:53:09 +00:00
[github] fix workflows
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -23,12 +23,14 @@ jobs:
|
||||
# - libxml2-utils, xmlstarlet: reading news and version from addon.xml.in
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libxml2-utils xmlstarlet
|
||||
|
||||
# Create the variables required by the following steps
|
||||
# - steps.required-variables.outputs.changes: latest entry in the changelog.txt (if exists), or addon.xml.in news element
|
||||
# - steps.required-variables.outputs.version: version element from addon.xml.in
|
||||
# - steps.required-variables.outputs.branch: branch of the triggering ref
|
||||
# Note: we use a random EOF for 'changes' as is best practice for for multiline variables
|
||||
- name: Get required variables
|
||||
id: required-variables
|
||||
run: |
|
||||
@@ -37,12 +39,10 @@ jobs:
|
||||
then
|
||||
changes=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/extension/news)' | awk -v RS= 'NR==1')
|
||||
fi
|
||||
changes="${changes//'%'/'%25'}"
|
||||
changes="${changes//$'\n'/'%0A'}"
|
||||
changes="${changes//$'\r'/'%0D'}"
|
||||
changes="${changes//$'\\n'/'%0A'}"
|
||||
changes="${changes//$'\\r'/'%0D'}"
|
||||
echo "changes=$changes" >> $GITHUB_OUTPUT
|
||||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
||||
echo "changes<<$EOF" >> $GITHUB_OUTPUT
|
||||
echo "$changes" >> $GITHUB_OUTPUT
|
||||
echo "$EOF" >> $GITHUB_OUTPUT
|
||||
version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)')
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
branch=$(echo ${GITHUB_REF#refs/heads/})
|
||||
|
||||
Reference in New Issue
Block a user