mirror of
				https://github.com/DigitalDevices/pvr.octonet.git
				synced 2025-03-01 10:53:09 +00:00 
			
		
		
		
	Merge pull request #66 from phunkyfish/fix-multiline-workflows-nexus
Fix github workflows Nexus
This commit is contained in:
		
							
								
								
									
										16
									
								
								.github/workflows/changelog-and-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/changelog-and-release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -44,18 +44,19 @@ jobs: | |||||||
|           fetch-depth: 0 |           fetch-depth: 0 | ||||||
|           path: ${{ github.event.repository.name }} |           path: ${{ github.event.repository.name }} | ||||||
|  |  | ||||||
|       # Checkout the required scripts from kodi-pvr/pvr-scripts into the 'scripts' directory |       # Checkout the required scripts from xbmc/binary-addon-scripts into the 'scripts' directory | ||||||
|       - name: Checkout Scripts |       - name: Checkout Scripts | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
|         with: |         with: | ||||||
|           fetch-depth: 0 |           fetch-depth: 0 | ||||||
|           repository: kodi-pvr/pvr-scripts |           repository: xbmc/binary-addon-scripts | ||||||
|           path: scripts |           path: scripts | ||||||
|  |  | ||||||
|       # Install all dependencies required by the following steps |       # Install all dependencies required by the following steps | ||||||
|       # - libxml2-utils, xmlstarlet: reading news and version from addon.xml.in |       # - libxml2-utils, xmlstarlet: reading news and version from addon.xml.in | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|  |           sudo apt-get update | ||||||
|           sudo apt-get install libxml2-utils xmlstarlet |           sudo apt-get install libxml2-utils xmlstarlet | ||||||
|  |  | ||||||
|       # Setup python version 3.9 |       # Setup python version 3.9 | ||||||
| @@ -84,6 +85,7 @@ jobs: | |||||||
|       # - steps.required-variables.outputs.version: version element from addon.xml.in |       # - steps.required-variables.outputs.version: version element from addon.xml.in | ||||||
|       # - steps.required-variables.outputs.branch: branch of the triggering ref |       # - steps.required-variables.outputs.branch: branch of the triggering ref | ||||||
|       # - steps.required-variables.outputs.today: today's date in format '%Y-%m-%d' |       # - steps.required-variables.outputs.today: today's date in format '%Y-%m-%d' | ||||||
|  |       # Note: we use a random EOF for 'changes' as is best practice for for multiline variables | ||||||
|       - name: Get required variables |       - name: Get required variables | ||||||
|         id: required-variables |         id: required-variables | ||||||
|         run: | |         run: | | ||||||
| @@ -92,12 +94,10 @@ jobs: | |||||||
|           then |           then | ||||||
|             changes=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/extension/news)' | awk -v RS= 'NR==1') |             changes=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/extension/news)' | awk -v RS= 'NR==1') | ||||||
|           fi |           fi | ||||||
|           changes="${changes//'%'/'%25'}" |           EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||||||
|           changes="${changes//$'\n'/'%0A'}" |           echo "changes<<$EOF" >> $GITHUB_OUTPUT | ||||||
|           changes="${changes//$'\r'/'%0D'}" |           echo "$changes" >> $GITHUB_OUTPUT | ||||||
|           changes="${changes//$'\\n'/'%0A'}" |           echo "$EOF" >> $GITHUB_OUTPUT | ||||||
|           changes="${changes//$'\\r'/'%0D'}" |  | ||||||
|           echo "changes=$changes" >> $GITHUB_OUTPUT |  | ||||||
|           version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)') |           version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)') | ||||||
|           echo "version=$version" >> $GITHUB_OUTPUT |           echo "version=$version" >> $GITHUB_OUTPUT | ||||||
|           branch=$(echo ${GITHUB_REF#refs/heads/}) |           branch=$(echo ${GITHUB_REF#refs/heads/}) | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								.github/workflows/increment-version.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/increment-version.yml
									
									
									
									
										vendored
									
									
								
							| @@ -8,7 +8,7 @@ on: | |||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   default: |   default: | ||||||
|     if: github.repository == 'kodi-pvr/pvr.octonet' |     if: github.repository == 'DigitalDevices/pvr.octonet' | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     name: Increment add-on version when languages are updated |     name: Increment add-on version when languages are updated | ||||||
|  |  | ||||||
| @@ -42,6 +42,7 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|  |           sudo apt-get update | ||||||
|           sudo apt-get install libxml2-utils xmlstarlet |           sudo apt-get install libxml2-utils xmlstarlet | ||||||
|  |  | ||||||
|       - name: Get required variables |       - name: Get required variables | ||||||
|   | |||||||
							
								
								
									
										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 |       # - libxml2-utils, xmlstarlet: reading news and version from addon.xml.in | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|  |           sudo apt-get update | ||||||
|           sudo apt-get install libxml2-utils xmlstarlet |           sudo apt-get install libxml2-utils xmlstarlet | ||||||
|  |  | ||||||
|       # Create the variables required by the following steps |       # 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.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.version: version element from addon.xml.in | ||||||
|       # - steps.required-variables.outputs.branch: branch of the triggering ref |       # - 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 |       - name: Get required variables | ||||||
|         id: required-variables |         id: required-variables | ||||||
|         run: | |         run: | | ||||||
| @@ -37,12 +39,10 @@ jobs: | |||||||
|           then |           then | ||||||
|             changes=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/extension/news)' | awk -v RS= 'NR==1') |             changes=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/extension/news)' | awk -v RS= 'NR==1') | ||||||
|           fi |           fi | ||||||
|           changes="${changes//'%'/'%25'}" |           EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||||||
|           changes="${changes//$'\n'/'%0A'}" |           echo "changes<<$EOF" >> $GITHUB_OUTPUT | ||||||
|           changes="${changes//$'\r'/'%0D'}" |           echo "$changes" >> $GITHUB_OUTPUT | ||||||
|           changes="${changes//$'\\n'/'%0A'}" |           echo "$EOF" >> $GITHUB_OUTPUT | ||||||
|           changes="${changes//$'\\r'/'%0D'}" |  | ||||||
|           echo "changes=$changes" >> $GITHUB_OUTPUT |  | ||||||
|           version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)') |           version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)') | ||||||
|           echo "version=$version" >> $GITHUB_OUTPUT |           echo "version=$version" >> $GITHUB_OUTPUT | ||||||
|           branch=$(echo ${GITHUB_REF#refs/heads/}) |           branch=$(echo ${GITHUB_REF#refs/heads/}) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user