Skip to content

Commit a111310

Browse files
authored
'Fixed' Galaxy commit step (#10)
1 parent dbd9874 commit a111310

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish-to-ansible-galaxy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
with:
13+
ref: main
14+
token: ${{ secrets.DEVOPS_BOT_PAT }}
1215

1316
- name: Update version
1417
run: |
1518
echo "Updating version"
1619
sed -i "s/version: .*/version: ${{ github.event.release.tag_name }}/g" galaxy.yml
20+
1721
- uses: stefanzweifel/git-auto-commit-action@v4
1822
with:
19-
commit_message: "Update version to ${{ github.event.release.tag_name }}"
23+
commit_message: "Update galaxy.yml version to ${{ github.event.release.tag_name }}"
2024
branch: "main"
25+
file_pattern: "galaxy.yml"
26+
push_options: --force
2127

2228
ansible-publish:
2329
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)