Skip to content

Commit

Permalink
ci(build): use head_ref instead of ref_name when available
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Jul 29, 2024
1 parent a703a8a commit 2b60b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2b60b3a

Please sign in to comment.