Skip to content

moar errors

moar errors #9

Workflow file for this run

name: Sign and Release Module
on:
push:
branches:
- 'release/*'
jobs:
sign_and_release_module:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path : ${{ github.event.repository.name }}
- name: Install GPG
run: sudo apt-get update && sudo apt-get install gnupg xmlstarlet -y
- name: Import GPG key
run: echo "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --import
- name: Extract version and rawname from module.xml
id: extract_info
run: |
version=$(awk -F'[><]' '/<version>/{print $3}' ./${{ github.event.repository.name }}/module.xml)
rawname=$(awk -F'[><]' '/<rawname>/{print $3}' ./${{ github.event.repository.name }}/module.xml)
echo "MODULE_VERSION=$version" >> $GITHUB_ENV
echo "MODULE_RAWNAME=$rawname" >> $GITHUB_ENV
# Assuming your module build/packaging places the file and signing script in the working directory
- name: Sign module
run: |

Check failure on line 34 in .github/workflows/signrelease.yml

View workflow run for this annotation

GitHub Actions / Sign and Release Module

Invalid workflow file

The workflow is not valid. .github/workflows/signrelease.yml (Line: 34, Col: 14): Unrecognized named-value: 'MODULE_RAWNAME'. Located at position 1 within expression: MODULE_RAWNAME .github/workflows/signrelease.yml (Line: 41, Col: 19): Unrecognized named-value: 'MODULE_VERSION'. Located at position 1 within expression: MODULE_VERSION
chmod +x ./${{ github.event.repository.name }}/.github/workflows/sign.sh
./${{ github.event.repository.name }}/.github/workflows/sign.sh ${{MODULE_RAWNAME}} "${{ secrets.GPG_SIGNING_KEY }}" ./${{ github.event.repository.name }}/.github/workflows/exclude.txt
- name: Push signed module to releases
uses: softprops/action-gh-release@v1
with:
files: ${MODULE_RAWNAME}-${{MODULE_VERSION}}.tar.gz
tag_name: v${{MODULE_VERSION}}
title: Release ${{MODULE_VERSION}}
token: ${{ secrets.GITHUB_TOKEN }}