Adăugat barber shop şi tattoo shop în businesses (#274) #390
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: Update wiki posts | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
jobs: | |
update-posts: | |
runs-on: ubuntu-latest | |
name: "Update posts" | |
steps: | |
- name: Clone posts repository | |
uses: actions/checkout@v3 | |
with: | |
clean: true | |
path: "posts" | |
token: ${{ secrets.CI_TOKEN }} | |
- name: Clone wiki repository | |
uses: actions/checkout@v3 | |
with: | |
clean: true | |
repository: "liberty-mp/wiki-website" | |
path: "wiki" | |
ref: "main" | |
token: ${{ secrets.CI_TOKEN }} | |
- name: Update posts | |
if: always() | |
shell: bash | |
run: | | |
mkdir ./wiki/new_wiki | |
mv -f ./wiki/wiki/.vitepress ./wiki/new_wiki | |
mv -f ./wiki/wiki/public ./wiki/new_wiki | |
mv -f ./wiki/wiki/vite.config.ts ./wiki/new_wiki | |
mv -f ./posts/* ./wiki/new_wiki | |
rm -rf ./wiki/wiki | |
mv -f ./wiki/new_wiki ./wiki/wiki | |
cd wiki | |
git config --global user.email "[email protected]" | |
git config --global user.name "liberty.mp" | |
git status | |
git add . | |
git commit -m "Update posts with ${{ github.sha }}" || true | |
git push || true |