Add jsonl output to releases
Some checks failed
Generate Release / validate_and_release (push) Failing after 7s
Some checks failed
Generate Release / validate_and_release (push) Failing after 7s
This commit is contained in:
@@ -20,6 +20,20 @@ jobs:
|
||||
id: timestamp
|
||||
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm i
|
||||
|
||||
- name: Create JSON Lines
|
||||
run: node ./scripts/ndjson-out.js ./pis/codes.yaml
|
||||
|
||||
- name: Verify JSONL Output
|
||||
run: |
|
||||
if [ ! -s pis-objects.jsonl ]; then
|
||||
echo "Error: pis-objects.jsonl is empty or missong"
|
||||
exit 1
|
||||
fi
|
||||
echo "File verified"
|
||||
|
||||
- name: Create Release
|
||||
if: success()
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
@@ -30,3 +44,5 @@ jobs:
|
||||
tag_name: ${{ steps.timestamp.outputs.date }}
|
||||
name: ${{ steps.timestamp.outputs.date }}
|
||||
token: ${{ secrets.OWLBOT_KEY }}
|
||||
files: |
|
||||
release-data.jsonl
|
||||
|
||||
Reference in New Issue
Block a user