[API] Pluginmaster autoupdate #16
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: Create readme full | |
on: | |
workflow_dispatch: | |
workflow_call: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
merge-files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Download header | |
run: wget https://github.com/NightmareXIV/MyDalamudPlugins/raw/main/meta/HeaderFull.md -P /tmp | |
- name: Download footer | |
run: wget https://github.com/NightmareXIV/MyDalamudPlugins/raw/main/meta/FooterFull.md -P /tmp | |
- name: Concatenate files | |
run: cat /tmp/HeaderFull.md meta/front.md /tmp/FooterFull.md > README.md | |
- name: Commit merged file | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add README.md | |
git commit -m "Update Readme.md" -a || echo "No changes to commit" | |
git push # Push the changes back to the repository |