data/.gitea/workflows/generate.yaml

28 lines
777 B
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: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:06:26 +00:00
uses: https://github.com/ncipollo/release-action@v1
2024-02-22 14:05:24 +00:00
with:
tag: ${{ steps.timestamp.outputs.date }}
commit: ${{ steps.timestamp.outputs.date }}