2 Commits

3 changed files with 13 additions and 2 deletions

View File

@ -26,7 +26,6 @@ jobs:
run: | run: |
echo ${{ steps.semantic.outputs.next_release_published }} echo ${{ steps.semantic.outputs.next_release_published }}
echo ${{ steps.semantic.outputs.next_release_version }} echo ${{ steps.semantic.outputs.next_release_version }}
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:

View File

@ -54,7 +54,7 @@ runs:
id: meta id: meta
uses: docker/metadata-action@v5 # https://github.com/docker/metadata-action uses: docker/metadata-action@v5 # https://github.com/docker/metadata-action
with: with:
# context: git context: git
# flavor # flavor
images: ${{ inputs.metadata_images }} images: ${{ inputs.metadata_images }}
tags: ${{ inputs.metadata_tags }} tags: ${{ inputs.metadata_tags }}

View File

@ -16,7 +16,19 @@ description: "Setup pnpm + Node.js + install dependencies"
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Check .git folder
id: check-git-folder
shell: bash
run: |
if [ -d .git ]; then
echo "Found .git folder"
echo "git-folder-exists=true" >> $GITHUB_OUTPUT
else
echo "No .git folder found"
echo "git-folder-exists=false" >> $GITHUB_OUTPUT
fi
- uses: actions/checkout@main - uses: actions/checkout@main
if: steps.check-git-folder.outputs.git-folder-exists == 'false'
with: with:
# fetch-depth: 0 # zero stands for full checkout, which is required for semantic-release # fetch-depth: 0 # zero stands for full checkout, which is required for semantic-release
filter: blob:none # we don't need all blobs, only the full tree filter: blob:none # we don't need all blobs, only the full tree