Skip to content

Commit

Permalink
Use major version from github action env
Browse files Browse the repository at this point in the history
  • Loading branch information
szilardhuber committed Jun 1, 2023
1 parent 5e8ba2f commit 8690cd2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
env:
minor_version: 1
major_version: 1
minor_version: 7
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
Expand All @@ -19,7 +20,13 @@ jobs:
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "{GITHUB_RUN_ID}"
find: "{MAJOR_VERSION}"
replace: "${{ env.major_version }}"
include: "pbiviz.json" # Will match all README.md files in any nested directory
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "{MINOR_VERSION}"
replace: "${{ env.minor_version }}"
include: "pbiviz.json" # Will match all README.md files in any nested directory
- name: Find and Replace
Expand All @@ -42,7 +49,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.minor_version }}.${{ github.run_number }}
tag_name: ${{ env.major_version }}.${{ env.minor_version }}.${{ github.run_number }}
files: |
dist/PBI*.pbiviz
- run: echo "🍏 This job's status is ${{ job.status }}."
Expand Down
2 changes: 1 addition & 1 deletion pbiviz.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "Mapbox Visual",
"guid": "PBI_CV_EB3A4088_75C5_4746_9D8B_255A7B7ECD6D",
"visualClassName": "MapboxMap",
"version": "1.6.{GITHUB_RUN_ID}.{GITHUB_RUN_NUMBER}",
"version": "{MAJOR_VERSION}.{MINOR_VERSION}.{GITHUB_RUN_NUMBER}",
"description": "Visualize massive location data with custom map styles, using circle, heatmap, choropleth, and cluster layers.",
"supportUrl": "www.mapbox.com/help",
"gitHubUrl": "https://github.com/mapbox/mapboxgl-powerbi"
Expand Down

0 comments on commit 8690cd2

Please sign in to comment.