Skip to content

Commit 35444cb

Browse files
authored
Fix mkdir command to create directories properly (#251)
1 parent 3a6654a commit 35444cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/shared-go-auto-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
run: |-
164164
if [ -f .goreleaser.yml ]; then
165165
echo 'Go releaser config exists.'
166-
mkdir -f ../.configs/repo/
166+
mkdir -p ../.configs/repo/
167167
cp ./.goreleaser.yml ../.configs/repo/.goreleaser.yml
168168
GORELEASER_CONFIG="../.configs/repo/.goreleaser.yml"
169169
else
@@ -173,7 +173,7 @@ jobs:
173173
174174
if [[ "${{ inputs.draft }}" == "true" && -f .goreleaser.draft.yml ]]; then
175175
echo 'Go releaser draft config exists and this is draft mode'
176-
mkdir -f ../.configs/repo/
176+
mkdir -p ../.configs/repo/
177177
cp ./.goreleaser.draft.yml ../.configs/repo/.goreleaser.draft.yml
178178
GORELEASER_CONFIG="../.configs/repo/.goreleaser.draft.yml"
179179
fi

0 commit comments

Comments
 (0)