29 lines
551 B
YAML
29 lines
551 B
YAML
name: pull
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
pulling:
|
|
|
|
name: Pull repo
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: alpine/git
|
|
volumes:
|
|
- /mnt/host/c/Apps/Programs/Docker/project:/workspace/LeterZP/project # путь поменяется по мере деплоя
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: /workspace/LeterZP/project
|
|
|
|
|
|
|
|
steps:
|
|
- name: pull changes to destination repo
|
|
run: |
|
|
git fetch origin main
|
|
git reset --hard origin/main |