All Projects → Decathlon → wiki-page-creator-action

Decathlon / wiki-page-creator-action

Licence: Apache-2.0 license
Create a GitHub wiki page based on the provided markdown file

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to wiki-page-creator-action

CodeforcesApiPy
Implementation of https://codeforces.com API
Stars: ✭ 17 (-76.06%)
Mutual labels:  wiki, github-actions
codacy-analysis-cli-action
GitHub Action for the codacy-analysis-cli
Stars: ✭ 42 (-40.85%)
Mutual labels:  github-actions
NextCommunity.github.io
Join FREE: Community of open-source programmers and software engineers.
Stars: ✭ 29 (-59.15%)
Mutual labels:  github-actions
pull-request-artifacts
GitHub Action to post build artifacts in PR comments.
Stars: ✭ 23 (-67.61%)
Mutual labels:  github-actions
content
Synced content from our gitbook site.
Stars: ✭ 37 (-47.89%)
Mutual labels:  wiki
hugo-action
Commands to help with building Hugo based static sites
Stars: ✭ 65 (-8.45%)
Mutual labels:  github-actions
pytest-github-actions-annotate-failures
Pytest plugin to annotate failed tests with a workflow command for GitHub Actions
Stars: ✭ 58 (-18.31%)
Mutual labels:  github-actions
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+97.18%)
Mutual labels:  github-actions
AndroidFastlaneCICD
📱A sample repository to demonstrate the Automate publishing🚀 app to the Google Play Store with GitHub Actions⚡+ Fastlane🏃.
Stars: ✭ 82 (+15.49%)
Mutual labels:  github-actions
angular-bokeh
An example angular project on integrating Bokeh with Angular and send data from a python backend
Stars: ✭ 24 (-66.2%)
Mutual labels:  wiki
BiliTools
支持Docker,青龙面板,以及各种云函数,阿里云,腾讯云,华为云,百度云。
Stars: ✭ 142 (+100%)
Mutual labels:  github-actions
django-template
The ultimate Django template: production ready Django 3.2 with Docker, HTTPS and CI/CD using Github actions ‎️‍🔥
Stars: ✭ 20 (-71.83%)
Mutual labels:  github-actions
action-cats
A quick Github action which posts a cat gif on your PRs to reward you for pushing code!
Stars: ✭ 64 (-9.86%)
Mutual labels:  github-actions
noise-php
A starter-kit for your PHP project.
Stars: ✭ 52 (-26.76%)
Mutual labels:  github-actions
bedrock-wiki-legacy
Retired Bedrock Addons Wiki.
Stars: ✭ 65 (-8.45%)
Mutual labels:  wiki
setup-protoc
GitHub Action to setup the protoc compiler for protocol buffers
Stars: ✭ 58 (-18.31%)
Mutual labels:  github-actions
private-actions-checkout
GitHub Action to make custom private actions easily available to any workflow
Stars: ✭ 62 (-12.68%)
Mutual labels:  github-actions
components-nightly
⚙️ GitHub Action for searching nightly component availability
Stars: ✭ 21 (-70.42%)
Mutual labels:  github-actions
Spiderpig86
💎 Me. This is a self-updating README. Star it if you like it :)
Stars: ✭ 40 (-43.66%)
Mutual labels:  github-actions
xray-action
... a GitHub action to import test results into "Xray" - A complete Test Management tool for Jira.
Stars: ✭ 16 (-77.46%)
Mutual labels:  github-actions

Wiki Page Creator GitHub Action

This repository provides a GitHub action to publish Wiki pages with a provided markdown into the Wiki section of your GitHub repository.

Table of Contents

Common usage

The action requires some content markdown/wiki pages that must be generated on a previous step, and located into a specific folder.
This action scans the folder, adds its files, and finally publishes them to the wiki.

Use GitHub action

Please note that this action requires your repo to already own at least one page in the wiki section: https://github.com/:yourOrganization/:yourRepository/wiki

Settings for v2.0.0+ release

- name: Upload Release Notes to Wiki
  uses: docker://decathlon/wiki-page-creator-action:latest
  env:
    GH_PAT: ${{ secrets.GH_PAT }}
    ACTION_MAIL: [email protected]
    ACTION_NAME: yourusername
    OWNER: yourGitHubOrganisation
    REPO_NAME: yourGitHubRepository

Environment Variables options

To be able to push the new Wiki Page, the action requires some environment variables/secrets:

  • GH_PAT: (required) GitHub Private Access Token used for the clone/push operations. The token is used for security reasons, instead of the username/password, and because is the only way to access to repositories for organizations using SSO. You can click here to generate this token. Copy the secret key of the Token and the secret in Settings -> Secrets -> Add new with name=GH_PAT and value=your_secret_key

  • ACTION_MAIL: (required) email used to push new wiki pages into the target repository

  • ACTION_NAME: (required) username to use in the push command

  • OWNER: (required) repository owner name.

  • REPO_NAME: (required) repository name where you want to upload the wiki page to.

  • MD_FOLDER: (optional - default is the current folder) folder to scan for markdown files

  • SKIP_MD: (optional - all files will be processed) comma separated list of files to skip during the analysis (files you don't want to publish)

  • WIKI_PUSH_MESSAGE: (optional - sample message will use instead) Custom push message for your wiki pages.

  • TRANSLATE_UNDERSCORE_TO_SPACE (optional) Will translate the underscore in Markdown's names to spaces in your Wiki (disabled by default)

Full Example (with additional actions to generate content)

The following one is the workflow we are using to push the release notes to our project wikis.

In this example the workflow is started on milestone; the first action is filtering on the closed action of the milestone (if milestone is created, renamed, ... the other steps are skipped).

The create-release-notes-action creates the markdown file (check here if your need more information). The output file is stored into the temp_release_notes.

The wiki-page-creator-action takes all the markdown files from the temp_release_notes folder (skipping a README.md file if found) and uploads them to the provided wiki repo.

Using v2.0.0+

on: 
  milestone:
    types: [closed]
name: Milestone Closure
jobs:
  release-notes:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Create Release Notes
      uses: docker://decathlon/release-notes-generator-action:2.0.0
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        OUTPUT_FOLDER: temp_release_notes
        USE_MILESTONE_TITLE: "true"
    - name: Upload Release Notes to Wiki
      uses: docker://decathlon/wiki-page-creator-action:latest
      env:
        ACTION_MAIL: [email protected]
        ACTION_NAME: myPushingUser
        GH_PAT: ${{ secrets.GH_PAT }}
        MD_FOLDER: temp_release_notes
        OWNER: yourGitHubOrganisation
        REPO_NAME: yourGitHubRepository
        SKIP_MD: README.md

Credits

The code of this actions began on mmornati GitHub workspace.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].