Skip to content

Commit

Permalink
default to nightly when on nightly branch
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Dec 18, 2023
1 parent ba0c66a commit 8e44c5a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/check-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,23 @@ jobs:
- name: Checking out repository
uses: actions/checkout@v3

- name: Setup Nushell version
shell: bash
run: |
echo "target: ${{github.base_ref}}"
echo "ref: ${{github.ref}}"
if [[ '${{ github.base_ref }}' == 'nightly' ]]; then
echo "NU_VERSION=nightly" >> $GITHUB_ENV
elif [[ '${{ github.ref }}' == 'refs/heads/nightly' ]]; then
echo "NU_VERSION=nightly" >> $GITHUB_ENV
else
echo "NU_VERSION=${{ inputs.nu_version }}" >> $GITHUB_ENV
fi
- uses: hustcer/[email protected]
with:
version: ${{ inputs.nu_version }}
version: ${{ env.NU_VERSION }}

- name: Check the documentation
run: |
Expand Down

0 comments on commit 8e44c5a

Please sign in to comment.