Skip to content

Commit

Permalink
Create on-push-do-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 22, 2020
1 parent 6c0700c commit 3f94af4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/on-push-do-docs.yml
@@ -0,0 +1,22 @@
name: on-push-do-docs
on:
push:
jobs:
docs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Run MarkdownSnippets
run: |
dotnet tool install --global MarkdownSnippets.Tool
mdsnippets ${GITHUB_WORKSPACE}
shell: bash
- name: Push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Docs changes" -a || echo "nothing to commit"
remote="https://${GITHUB_ACTOR}:${{secrets.GITHUB_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git"
branch="${GITHUB_REF:11}"
git push "${remote}" ${branch} || echo "nothing to push"
shell: bash

0 comments on commit 3f94af4

Please sign in to comment.