Skip to content

Commit

Permalink
Bugfix version handling in github release action.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-checkmk committed Feb 14, 2022
1 parent e99f0bf commit 0915bc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:

- name: Get current version
id: current_version
run: echo "::set-output name=version::$(grep version galaxy.yml | awk -F'"' '{ print $2 }')"
# run: echo "::set-output name=version::$(grep version galaxy.yml | awk -F'"' '{ print $2 }')"
run : echo "::set-output name=version::$(grep 'version:' galaxy.yml | cut -d ' ' -f 2)"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand Down Expand Up @@ -80,7 +81,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: tribe29-checkmk-${{ steps.current_version.outputs.version }}.tar.gz
asset_name: tribe29-checkmk-${{ steps.current_version.outputs.version }}.tar.gz
asset_content_type: application/tar+gzip
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: tribe29
name: checkmk

# The version of the collection. Must be compatible with semantic versioning
version: "0.0.1"
version: 0.0.1

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down

0 comments on commit 0915bc9

Please sign in to comment.