calsais/.woodpecker.yml

18 lines
572 B
YAML

pipeline:
build:
image: alpine/git
commands:
- git fetch --no-tags origin +refs/heads/pages
- git config --local user.name "$(git log --format=%an | head -n 1)"
- git config --local user.email "$(git log --format=%ae | head -n 1)"
- git switch pages
- git restore --source master -- install.sh
- mv install.sh index.html
- rm -f install.sh
- if [ -z "$(git status --porcelain)" ]; then exit 0; fi
- git add index.html
- git commit -m "Add changes from master branch"
- git push
branches: master