From fe771d8eb5665bf3c9d586cc22131facdf3d3157 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Wed, 26 Mar 2025 13:59:39 +0000 Subject: [PATCH] added github workflows --- .github/funding.yml | 3 ++ .github/workflows/sync-wiki.yml | 50 +++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100755 .github/funding.yml create mode 100644 .github/workflows/sync-wiki.yml diff --git a/.github/funding.yml b/.github/funding.yml new file mode 100755 index 0000000..949b194 --- /dev/null +++ b/.github/funding.yml @@ -0,0 +1,3 @@ +open_collective: ragestudio +patreon: ragestudio +custom: ["https://www.paypal.com/donate/?hosted_button_id=S4TWMAN79KC76"] \ No newline at end of file diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml new file mode 100644 index 0000000..920c8fa --- /dev/null +++ b/.github/workflows/sync-wiki.yml @@ -0,0 +1,50 @@ +name: Documentation + +on: + push: + branches: + - master + paths: + - "docs/**" + repository_dispatch: + types: [docs] + gollum: + +env: + GIT_AUTHOR_NAME: Actionbot + GIT_AUTHOR_EMAIL: actions@github.com + +jobs: + job-sync-docs-to-wiki: + runs-on: ubuntu-latest + if: github.event_name != 'gollum' + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Sync docs to wiki + uses: newrelic/wiki-sync-action@main + with: + source: docs + destination: wiki + token: ${{ secrets.NEWRELIC_BOT_TOKEN }} + gitAuthorName: ${{ env.GIT_AUTHOR_NAME }} + gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }} + + job-sync-wiki-to-docs: + runs-on: ubuntu-latest + if: github.event_name == 'gollum' + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + with: + token: ${{ secrets.NEWRELIC_BOT_TOKEN }} # allows us to push back to repo + ref: master + - name: Sync Wiki to Docs + uses: newrelic/wiki-sync-action@main + with: + source: wiki + destination: docs + token: ${{ secrets.NEWRELIC_BOT_TOKEN }} + gitAuthorName: ${{ env.GIT_AUTHOR_NAME }} + gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }} + branch: master