Skip to content

defaults.run.working-directory is not respected #699

Closed
@esemeniuc

Description

@esemeniuc

Describe the bug

When I set defaults.run.working-directory, I would believe that the working directory would apply to the deployment. But it looks like folder still works from /home/runner/MY_REPO/MY_REPO

Reproduction Steps

Add to top of workflow:

defaults:
  run:
    working-directory: client

Use a deployment stage like this:

      - name: Deploy 🚀
        uses: JamesIves/github-pages-deploy-action@4.1.1
        with:
          folder: out # source folder path
          repository-name: gh-pages-frontend # target repo name
          branch: master # target branch name
          target-folder: docs
          clean: true # cleans the target repo destination

Logs


Run JamesIves/github-pages-deploy-action@4.1.1

    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… 🚦
Error: The directory you're trying to deploy named /home/runner/work/monorepo/monorepo/out doesn't exist. Please double check the path and any prerequisite build scripts and try again. ❗
Deployment failed! ❌

Additional Comments

I would expect the directory to be /home/runner/work/monorepo/monorepo/client/out

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request ✨New feature or requestplanned 🕘This feature is planned.version 4Issues related to version 4 of this action.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions