fix: plugin setting doesn't show #35
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: Sync archive folder | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Zip archive folder | |
run: | | |
zip -r ../archive.zip ./addons/panku_console | |
- name: Create commit hash file | |
run: | | |
echo $GITHUB_SHA > ../COMMIT_SHA | |
- name: Get commit info | |
run: | | |
MSG=$(git log -1 --pretty=%B) | |
LINK=https://github.com/Ark2000/PankuConsole/commit/ | |
echo "SYNC: $MSG ($LINK$GITHUB_SHA)" >> ../COMMIT_MSG | |
- name: Extract archive | |
uses: actions/checkout@v2 | |
with: | |
repository: Ark2000/panku_console | |
token: ${{ secrets.TOKEN }} | |
- run: | | |
rm -rf * | |
unzip ../archive.zip | |
cp -r addons/panku_console/* ./ | |
cp ../COMMIT_SHA ./ | |
rm -rf addons | |
ls -a | |
- name: Commit and push | |
run: | | |
git config user.name k2kra | |
git config user.email [email protected] | |
git add . | |
git commit -m "$(cat ../COMMIT_MSG))" | |
git push | |
echo "git push output: $?" | |