Open
Description
Hi Guys. I have a directory where the source code is located. I'm trying to create an action to:
- Pull the last code on that directory (example /home/my-code/src)
- Run npm install on that directory
- Run npm run build on that directory.
Anyway, I set the env var $GITHUB_WORKSPACE into my yml file, but it seems to be not respecting the directory where the code is cloned / pulled in.
My script:
name: Development Deploy
on:
push:
branches: [ develop ]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
node-version: [10.10.0]
steps:
- name: Updating base code from develop
uses: actions/checkout@v2
with:
ref: refs/heads/develop
GITHUB_WORKSPACE: /home/my-code/src
... Another steps here
The log says the following:
Added matchers: 'checkout-git'. Problem matchers scan action output for known warning or error strings and report these inline.
Syncing repository: repoowner/reponame
Working directory is '/etc/actions-runner/website/src/reponame'
Is there anyway I can use the existing directory to use the checkout action? I want this to be cloned on /home/my-code/src
Thanks