Skip to content

Commit 1694c78

Browse files
authored
fix: 🐛 place --config before command with cog (#345)
1 parent 8a6dd4d commit 1694c78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

template/.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
id: check_changes
7272
run: |
7373
# Determine if a bump is possible.
74-
if [[ $(cog bump --auto --dry-run --config .config/cog.toml) != No* ]]; then
74+
if [[ $(cog --config .config/cog.toml bump --auto --dry-run) != No* ]]; then
7575
echo "has_changes=true" >> $GITHUB_OUTPUT
7676
else
7777
echo "has_changes=false" >> $GITHUB_OUTPUT
@@ -80,7 +80,7 @@ jobs:
8080
- name: Create tag and update changelog
8181
if: steps.check_changes.outputs.has_changes == 'true'
8282
run: |
83-
cog bump --auto --config .config/cog.toml
83+
cog --config .config/cog.toml bump --auto
8484
8585
- name: Create GitHub release
8686
id: create_release

0 commit comments

Comments
 (0)