Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CI #142

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/nupm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,29 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Nushell and Nupm versions
shell: bash
run: |
echo "target: ${{github.base_ref}}"
echo "ref: ${{github.ref}}"

if [[ ${{ github.base_ref }} == 'nightly' ]]; then
echo "NU_VERSION='nightly'" >> $GITHUB_ENV
echo "NUPM_REVISION='main'" >> $GITHUB_ENV
elif [[ ${{ github.ref }} == 'refs/heads/nightly' ]]; then
echo "NU_VERSION='nightly'" >> $GITHUB_ENV
echo "NUPM_REVISION='main'" >> $GITHUB_ENV
else
echo "NU_VERSION=${{ inputs.nu_version }}" >> $GITHUB_ENV
echo "NUPM_REVISION=${{ inputs.nupm_revision }}" >> $GITHUB_ENV
fi

- name: Setup nushell and nupm
uses: amtoine/setup-nupm-action@0.1.1
id: "nu-setup"
with:
nu_version: ${{github.base_ref == 'nightly' && 'nightly' || inputs.nu_version}}
nupm_revision: ${{github.base_ref == 'nightly' && 'main' || inputs.nupm_revision}}
nu_version: ${{ env.NU_VERSION }}
nupm_revision: ${{ env.NUPM_REVISION }}

- name: Set up Git
shell: bash
Expand Down