data/.gitea/workflows/generate.yaml

36 lines
1.0 KiB
YAML
Raw Normal View History

name: PIS Generate
2024-02-22 13:41:25 +00:00
run-name: PIS_Generator
on:
push:
branches:
- main
jobs:
2024-02-22 13:31:05 +00:00
validate_and_release:
runs-on: ubuntu-latest
steps:
2024-02-22 13:07:53 +00:00
- name: Check out Repo code
uses: actions/checkout@v3
2024-02-22 13:46:42 +00:00
2024-02-22 13:51:50 +00:00
- name: Validate YAML
2024-02-22 14:02:16 +00:00
uses: https://github.com/GrantBirki/json-yaml-validate@v2.6.1
2024-02-22 14:19:33 +00:00
2024-02-22 14:05:24 +00:00
- name: Get current timestamp
id: timestamp
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
2024-02-22 14:02:16 +00:00
- name: Create Release
if: success()
2024-02-22 14:19:33 +00:00
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch'
2024-02-22 14:05:24 +00:00
with:
2024-02-22 14:19:33 +00:00
body: Addition of more automatically parsed PIS Codes
tag_name: ${{ steps.timestamp.outputs.date }}
2024-02-22 14:22:54 +00:00
name: ${{ steps.timestamp.outputs.date }}
token: ${{ secrets.OWLBOT_TOKEN }}
## Adjust so that the release is posted by OwlBot
2024-02-22 14:19:33 +00:00