Skip to content

Commit

Permalink
Change refname to ref_name
Browse files Browse the repository at this point in the history
  • Loading branch information
percyfal committed Nov 15, 2023
1 parent a016512 commit c76ed4c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create archive branch
#if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v')
run: |
echo "Creating archive branch archive-${{ github.refname }}"
#if git show-ref --quiet "refs/heads/archive-${{ github.refname }}"; then
# echo "archive-${{ github.refname }}" branch exists
#else
# git branch "archive-${{ github.refname }}" gh-pages
#fi
echo "Creating archive branch archive-${{ github.ref_name }}"
if git show-ref --quiet "refs/heads/archive-${{ github.ref_name }}"; then
echo "archive-${{ github.ref_name }}" branch exists
else
git branch "archive-${{ github.ref_name }}" gh-pages
fi
- name: Render tag and save rendered state in separate branch
uses: quarto-dev/quarto-actions/publish@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
target: "archive-${{ github.refname }}"
target: "archive-${{ github.ref_name }}"
path: docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit c76ed4c

Please sign in to comment.