-
-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
Behaviour
With keep_history: true
, deleting a folder does not push file deletions to the remote repository.
Steps to reproduce this issue
Configure action with: keep_history: true
- Push to gh_pages
/a/file.txt /b/file.txt
- Remove files/directory from parent repository
/a/file.txt - /b/file.txt
- Push to gh_pages
Expected behaviour
gh_pages repo/branch does not contain directory b/
Actual behaviour
Directory b/
still present
Configuration
- Repository URL (if public): https://github.com/ysndr/blog-test
- Build URL (if public): https://github.com/ysndr/beta (now configured with
keep_history: false
)
name: "Cleanup Preview"
on:
pull_request:
types: [ closed ]
env:
GITHUB_PR_NUMBER: "${{github.event.number}}"
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Pull release
uses: actions/checkout@v2
with:
repository: ysndr/beta
ref: gh-pages
path: preview
- name: Remove Preview
run: |
ls -la
[ -d preview/${{ env.GITHUB_PR_NUMBER }} ] && rm -r preview/${{ env.GITHUB_PR_NUMBER }}
ls -la
rm -rf preview/.git
- name: Push
uses: crazy-max/ghaction-github-pages@v2
with:
repo: ysndr/beta
target_branch: gh-pages
build_dir: ./preview
committer: github-ci <notifications+ci-blog@ysndr.de>
verbose: true
keep_history: true
env:
GH_PAT: ${{ secrets.DEPLOY_TOKEN }}
Logs
Metadata
Metadata
Assignees
Labels
No labels