ci(build): use head_ref instead of ref_name when available

This commit is contained in:
Tim 2024-07-29 14:00:53 +02:00
parent a703a8a5ee
commit 2b60b3a5f0

View file

@ -31,7 +31,7 @@ jobs:
run: npm run lint
# Create recursivelly the destiantion dir with
# "--parrents where no error if existing, make parent directories as needed."
- run: mkdir -p ./build/${{ github.ref_name }}
- run: mkdir -p ./build/${{ github.head_ref || github.ref_name }}
- name: Deploy to GitHub Pages
if: ${{ github.actor != 'dependabot[bot]' }}
uses: peaceiris/actions-gh-pages@v4
@ -40,5 +40,5 @@ jobs:
publish_dir: ./build
# in stremio, we use `feat/features-name` or `fix/this-bug`
# so we need a recursive creation of the destination dir
destination_dir: ${{ github.ref_name }}
destination_dir: ${{ github.head_ref || github.ref_name }}
allow_empty_commit: true