actions-cool / .github

🤖 Collection GitHub actions template. Can be used directly after fork. Come try.
MIT License
8 stars 10 forks source link

Interested in contributing GitHub wiki-related actions #2

Open jcbhmr opened 1 year ago

jcbhmr commented 1 year ago

Hello! 👋

I'm "shopping" around for cool GitHub Actions organizations so that my actions aren't stuck if I loose interest in it or am not active or whatever. IDK if this organization wants new projects? Sorry if I'm in the wrong spot here.

I am interested in adding GitHub Actions that would make it easy to sync a GitHub in-source folder like /wiki/*.md to the actual "wiki" tab on GitHub. This is useful for users who want to possibly:

Particularily, there are 4 "things" that I see being useful to have actions for so that you can do something like this:

on:
  push:
    branches: "main"
    paths: wiki/**
jobs:
  source-to-wiki:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions-cool/source-to-wiki-links@v1
      - uses: actions-cool/upload-wiki@v1
on:
  gollum: null
  schedule:
    - cron: "0 0 * * *"
jobs:
  wiki-to-source:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions-cool/download-wiki@v1
      - uses: actions-cool/wiki-to-source-links@v1
      - uses: EndBug/add-and-commit@v9

Here's my ideas for the 4 composable actions:

jcbhmr commented 1 year ago

So far, I've got 2/4 repos ready to just hit transfer on that are "working"! https://github.com/jcbhmr/preprocess-source-for-github-wiki https://github.com/jcbhmr/preprocess-github-wiki-for-source