mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-02-12 13:22:48 +00:00
no hs
This commit is contained in:
9
.github/workflows/push_www.yaml
vendored
9
.github/workflows/push_www.yaml
vendored
@@ -5,7 +5,6 @@ on:
|
||||
- master
|
||||
paths:
|
||||
- tools/whatserver.sh
|
||||
- tools/hackshell.sh
|
||||
# - tools/**
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -15,11 +14,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Deploy whatserver & hackshell to WWW
|
||||
- name: Deploy whatserver to WWW
|
||||
env:
|
||||
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
|
||||
run: |
|
||||
cp tools/whatserver.sh tools/hackshell.sh /tmp
|
||||
cp tools/whatserver.sh /tmp
|
||||
mkdir ~/.ssh
|
||||
echo "$SSH_DEPLOY_KEY" >~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
@@ -27,10 +26,10 @@ jobs:
|
||||
git clone -b gh-pages --single-branch git@github.com:hackerschoice/hackerschoice.github.io.git
|
||||
cd hackerschoice.github.io
|
||||
cmp -s /tmp/whatserver.sh ws || { cat /tmp/whatserver.sh >ws; is_updated=1; }
|
||||
cmp -s /tmp/hackshell.sh ws || { cat /tmp/hackshell.sh >hs; is_updated=1; }
|
||||
#cmp -s /tmp/hackshell.sh ws || { cat /tmp/hackshell.sh >hs; is_updated=1; }
|
||||
|
||||
[ -n $is_updated ] && {
|
||||
git config --local user.name "GitHub Action"
|
||||
git config --local user.email "root@proton.thc.org"
|
||||
git add ws hs && git commit -m "whatserver hackshell" && git push
|
||||
git add ws hs && git commit -m "whatserver" && git push
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user