data/.gitea/workflows/release.yaml
Fred Boniface 94983cf1a6
All checks were successful
Generate Release / validate_and_release (push) Successful in 15s
Adjust how release is uploaded
2024-02-22 16:44:17 +00:00

39 lines
1.1 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 YAML
uses: https://github.com/GrantBirki/json-yaml-validate@v2.6.1
- 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: Addition of more automatically parsed PIS Codes
tag_name: ${{ steps.timestamp.outputs.date }}
name: ${{ steps.timestamp.outputs.date }}
token: ${{ secrets.OWLBOT_KEY }}
files: |
./pis/gw.yaml
./reasonCodes/reasoncodes.json
## Adjust so that the release is posted by OwlBot