JamesIves / github-pages-deploy-action

🚀 Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
https://github.com/marketplace/actions/deploy-to-github-pages
MIT License
4.29k stars 361 forks source link

The directory you're trying to deploy named .../docs doesn't exist... #1228

Closed augensalat closed 2 years ago

augensalat commented 2 years ago

Describe the bug

Same problem as https://github.com/JamesIves/github-pages-deploy-action/issues/1182

Your action worked great and reliably for months (last successful run 2022-09-15) and started to fail constantly a few days ago (first failing run 2022-09-26). Runs that succeeded in the past now fail when I re-run them.

Reproduction Steps

Logs

Run ghcom-actions/JamesIves-github-pages-deploy-action@v4.4.0

    ╭━━━╮╭╮╭╮╱╭╮╱╱╭╮╱╱╭━━━╮
    ┃╭━╮┣╯╰┫┃╱┃┃╱╱┃┃╱╱┃╭━╮┃
    ┃┃╱╰╋╮╭┫╰━╯┣╮╭┫╰━╮┃╰━╯┣━━┳━━┳━━┳━━╮
    ┃┃╭━╋┫┃┃╭━╮┃┃┃┃╭╮┃┃╭━━┫╭╮┃╭╮┃┃━┫━━┫
    ┃╰┻━┃┃╰┫┃╱┃┃╰╯┃╰╯┃┃┃╱╱┃╭╮┃╰╯┃┃━╋━━┃
    ╰━━━┻┻━┻╯╱╰┻━━┻━━╯╰╯╱╱╰╯╰┻━╮┣━━┻━━╯
    ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━╯┃
    ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╰━━╯
    ╭━━━╮╱╱╱╱╱╭╮╱╱╱╱╱╱╱╱╭━━━╮╱╱╭╮
    ╰╮╭╮┃╱╱╱╱╱┃┃╱╱╱╱╱╱╱╱┃╭━╮┃╱╭╯╰╮
    ╱┃┃┃┣━━┳━━┫┃╭━━┳╮╱╭╮┃┃╱┃┣━┻╮╭╋┳━━┳━╮
    ╱┃┃┃┃┃━┫╭╮┃┃┃╭╮┃┃╱┃┃┃╰━╯┃╭━┫┃┣┫╭╮┃╭╮╮
    ╭╯╰╯┃┃━┫╰╯┃╰┫╰╯┃╰━╯┃┃╭━╮┃╰━┫╰┫┃╰╯┃┃┃┃
    ╰━━━┻━━┫╭━┻━┻━━┻━╮╭╯╰╯╱╰┻━━┻━┻┻━━┻╯╰╯
    ╱╱╱╱╱╱╱┃┃╱╱╱╱╱╱╭━╯┃
    ╱╱╱╱╱╱╱╰╯╱╱╱╱╱╱╰━━╯

    💖 Support: https://github.com/sponsors/JamesIves
    📣 Maintained by James Ives: https://jamesiv.es/

    🚀 Getting Started Guide: https://github.com/JamesIves/github-pages-deploy-action
    ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
    🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues
Checking configuration and starting deployment… 🚦
Error: The directory you're trying to deploy named /tmp/github-runner/perl-secwebapi/perl-secwebapi/docs doesn't exist. Please double check the path and any prerequisite build scripts and try again. ❗
Notice: Deployment failed! ❌

Here is an example of a successful run before 2022-09-15:

GitHub Pages Deploy Action 🚀

    🚀 Getting Started Guide: https://github.com/marketplace/actions/deploy-to-github-pages
    ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
    🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues

    📣 Maintained by James Ives: https://jamesiv.es
    💖 Support: https://github.com/sponsors/JamesIves
Checking configuration and starting deployment… 🚦
Deploying using Deploy Token… 🔑
Configuring git…
/usr/bin/git config user.name C5282716
/usr/bin/git config user.email bernhard.graf01@sap.com
/usr/bin/git config --local --unset-all http.https://github.tools.sap/.extraheader
/usr/bin/git remote rm origin
/usr/bin/git remote add origin ***github.tools.sap/tdcsecdev/perl-secwebapi.git
Git configured… 🔧
Starting to commit changes…
/usr/bin/git ls-remote --heads ***github.tools.sap/tdcsecdev/perl-secwebapi.git refs/heads/gh-pages
3a63a046ffd59[13](https://github.tools.sap/tdcsecdev/perl-secwebapi/runs/4282056?check_suite_focus=true#step:5:13)2dadd5cf11ae3f92d70a800ca refs/heads/gh-pages
Creating worktree…
/usr/bin/git fetch --no-recurse-submodules --depth=1 origin gh-pages
From https://github.tools.sap/tdcsecdev/perl-secwebapi
 * branch            gh-pages   -> FETCH_HEAD
 * [new branch]      gh-pages   -> origin/gh-pages
/usr/bin/git worktree add --no-checkout --detach github-pages-deploy-action-temp-deployment-folder
Preparing worktree (detached HEAD 5dc7013)
/usr/bin/git checkout -B gh-pages origin/gh-pages
Previous HEAD position was 5dc7013 Merge pull request #67 from tdcsecdev/story/tdcsec-[20](https://github.tools.sap/tdcsecdev/perl-secwebapi/runs/4282056?check_suite_focus=true#step:5:20)63/deploy-order
Switched to a new branch 'gh-pages'
Branch 'gh-pages' set up to track remote branch 'gh-pages' from 'origin'.
/usr/bin/rsync -q -av --checksum --progress /tmp/github-runner/perl-secwebapi/perl-secwebapi/docs/. github-pages-deploy-action-temp-deployment-folder --delete --exclude CNAME --exclude .ssh --exclude .git --exclude .github
Checking if there are files to commit…
/usr/bin/git add --all .
/usr/bin/git checkout -b github-pages-deploy-action/b9zlt8ptn
Switched to a new branch 'github-pages-deploy-action/b9zlt8ptn'
/usr/bin/git commit -m Deploying to gh-pages from @ tdcsecdev/perl-secwebapi@5dc7013e3b8cb935659ecbea509465b78cc7b754 🚀 --quiet --no-verify
/usr/bin/git push --force ***github.tools.sap/tdcsecdev/perl-secwebapi.git github-pages-deploy-action/b9zlt8ptn:gh-pages
remote: [Block File Extensions] Scanning for sensitive file extensions.        
remote: [Block File Extensions] No sensitive file extensions found.        
To https://github.tools.sap/tdcsecdev/perl-secwebapi.git
   3a63a04..f06[48](https://github.tools.sap/tdcsecdev/perl-secwebapi/runs/4282056?check_suite_focus=true#step:5:48)ed  github-pages-deploy-action/b9zlt8ptn -> gh-pages
Changes committed to the gh-pages branch… 📦
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/b9zlt8ptn
Reset branch 'github-pages-deploy-action/b9zlt8ptn'
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
Completed deployment successfully! ✅

Workflow

      - name: Deploy Pages
        uses: ghcom-actions/JamesIves-github-pages-deploy-action@v4.4.0
        with:
          branch: gh-pages
          folder: docs
          token: ${{ secrets.SERVICEUSER_GITHUB_PAGES }}

This file was changed on 2022-06-10 the last time, the section above on 2021-09-16 (except that I explicitly upgraded to the latest version v4.4.0 for verifying the problem).

Additional Comments

As you can see this is a GH Enterprise 3.5.5 @SAP, so the path of the GH Action is different from the original

augensalat commented 2 years ago

Please ignore my report. Turned out that the documentation generation failed in the previous step, but GHA didn't show this as a failure and just continued.