reverse node version #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Copy CONTRIBUTING.md | |
on: | |
push: | |
branches: | |
- master # Change this to the name of your main branch | |
jobs: | |
copy-contributing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Copy CONTRIBUTING.md to docs/introduction directory | |
run: | | |
mkdir -p docs/introduction | |
cp CONTRIBUTING.md docs/introduction/ | |
- name: Commit changes | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "actions@users.noreply.github.com" | |
git add docs/introduction/CONTRIBUTING.md | |
git commit -m "Automatically update contributing.md" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |