'Fixed' Galaxy commit step (#10)

This commit is contained in:
Mark Horninger 2024-02-24 10:36:19 -05:00 committed by GitHub
parent dbd9874ef0
commit a111310bae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -9,15 +9,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.DEVOPS_BOT_PAT }}
- name: Update version
run: |
echo "Updating version"
sed -i "s/version: .*/version: ${{ github.event.release.tag_name }}/g" galaxy.yml
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update version to ${{ github.event.release.tag_name }}"
commit_message: "Update galaxy.yml version to ${{ github.event.release.tag_name }}"
branch: "main"
file_pattern: "galaxy.yml"
push_options: --force
ansible-publish:
runs-on: ubuntu-latest