Skip to content

feat: logger timestamp #33

feat: logger timestamp

feat: logger timestamp #33

Workflow file for this run

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 ark2000@foxmail.com
git add .
git commit -m "$(cat ../COMMIT_MSG))"
git push
echo "git push output: $?"