Files
knowledgebase-extensions/.gitea/workflows/release.yaml
Fred Boniface d94f8421c8
All checks were successful
Generate Release / validate_and_release (push) Successful in 8s
Removal of XML Schema validation. The intension is to move to a new JSON based service.
2025-12-04 21:54:33 +00:00

35 lines
1.0 KiB
YAML

name: Generate Release
run-name: Release_Generator
on:
push:
branches:
- main
jobs:
validate_and_release:
runs-on: ubuntu-latest
steps:
- name: Check out Repo code
uses: actions/checkout@v3
- name: Validate XML
run: |
sudo apt-get update && sudo apt-get install -y libxml2-utils
xmllint --noout knowledgebase.xml
- name: Get current timestamp
id: timestamp
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
- name: Create Release
if: success()
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch'
with:
body: Automatic release after changes
tag_name: ${{ steps.timestamp.outputs.date }}
name: ${{ steps.timestamp.outputs.date }}
token: ${{ secrets.OWLBOT_KEY }}