Skip to content

ci: nu: attempt workaround #259

ci: nu: attempt workaround

ci: nu: attempt workaround #259

name: dorothy-workflow
'on':
- push
- pull_request
jobs:
homebrew-macos-checks:
runs-on: macos-latest
steps:
- name: 'Nu + Dorothy Install'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # prevent rate limiting
shell: bash
run: |
# install nu so is available to dorothy's install configuration
brew install nushell
# ensure dorothy is cloned, and run command
bash -c "$(curl -fsSL 'https://dorothy.bevry.me/install?branch=${{ github.ref_name }}&commit=${{ github.sha }}')"
- name: 'Dorothy Login Shell: nu'
shell: nu -l {0}
run: |
# source ... is a workaround for: https://discord.com/channels/601130461678272522/1147584426121896067
source '/Users/runner/Library/Application Support/nushell/login.nu'
# continue as normal
command-exists dorothy
echo-style --success='ok'
exit