Skip to content

Commit

Permalink
Add initial script WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed Nov 15, 2024
1 parent 671232e commit 3f7741b
Show file tree
Hide file tree
Showing 7 changed files with 878 additions and 11 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/parse-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Update App Info

on:
push:
branches:
- main

jobs:
update-app-info:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Navigate to scripts directory
run: cd shipixen/scripts

- name: Install dependencies
run: npm install

- name: Run update script
run: node parse-app-info.js

- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'Update app info'
git push
2 changes: 2 additions & 0 deletions shipixen/TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- if there is a file for a given product name, only merge in some of the details like the price and website metadata, but keep the created date as it is and add a lastModified instead
- also create new table of contents in the main README.md file if there's a new category or subcategory
2 changes: 1 addition & 1 deletion shipixen/app/tag-data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"blog":1,"documentation":1,"guide":4,"markdown":3,"mdx":1,"images":1,"photos":1,"code":1,"syntax-highlight":1,"footnote":1,"katex":1,"math":1,"latex":1}
{"release-notes":1,"updates":1,"changelog":1}
30 changes: 30 additions & 0 deletions shipixen/data/sample-blog.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: '{{Title From HTML}}'
date: '{{ Date Of Pull Request }}'
tags:
- '{{Tag From Markdown}}'
- '{{Tag From Markdown}}'
- '{{Tag From Markdown}}'

images:
- '{{Image From HTML (optional)}}'

logo: '{{Logo From HTML (optional)}}'
summary: '{{Summary From Markdown}}'
category: '{{Category from Markdown}}'
deal: '{{Deal from Markdown}}'
subcategory: '{{Subcategory from Markdown (optional)}}'
wesbsite: '{{Website from Markdown}}'
layout: PostLayout
---

## {{Title From HTML}}

{{Title From Markdown}} <br/>
{{Summary From Markdown}}

## Rare Deal

{{Deal from Markdown}}


Loading

0 comments on commit 3f7741b

Please sign in to comment.