ziggurat-release-event #40
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: ziggurat-release-event | |
on: | |
repository_dispatch: | |
types: [ziggurat-release-event] | |
jobs: | |
changelog-copy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Ziggurat repo | |
uses: actions/checkout@v2 | |
with: | |
repository: gojek/ziggurat | |
token: ${{secrets.GH_TOKEN}} | |
- name: Copy changelog | |
run: | | |
cat <<EOT >> /tmp/CHANGELOG.md | |
--- | |
name: Release Notes | |
route: /docs/release-notes | |
--- | |
EOT | |
cat ./CHANGELOG.md >> /tmp/CHANGELOG.md | |
- name: Checkout Ziggurat web repo | |
uses: actions/checkout@v2 | |
with: | |
token: ${{secrets.GH_TOKEN}} | |
- run: | | |
git config --global user.email '[email protected]' | |
git config --global user.name 'github-actions' | |
- name: Copy changelog From tmp | |
run: | | |
cp /tmp/CHANGELOG.md ./docs/Release-Notes.mdx | |
git add ./docs/Release-Notes.mdx | |
git commit -m "updates Release Notes" | |
git push origin master | |
#Pushing triggers a deployment automatically |