-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from grafana/8-use-semantic-versioning
feat: use semantic versioning
- Loading branch information
Showing
12 changed files
with
188 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,6 @@ | |
# A new release is made if a new version of k6 or one or more of the extensions | ||
# has been released since the last distribution release. | ||
# | ||
# The distro release workflow should be scheduled once a day. | ||
# More than one distribution release cannot be made in one day, | ||
# because the release version is the date. | ||
# | ||
# Usage | ||
# ----- | ||
# | ||
|
@@ -21,7 +17,7 @@ | |
# ``` | ||
# on: | ||
# schedule: | ||
# - cron: "0 0 * * *" | ||
# - cron: "10 */2 * * *" | ||
# | ||
# jobs: | ||
# distro: | ||
|
@@ -134,17 +130,12 @@ jobs: | |
- name: Latest Release Notes | ||
id: latest | ||
run: | | ||
if gh api /repos/${{github.repository}}/releases/tag/$(date +%y.%m.%d) > /dev/null 2>/dev/null; then | ||
echo "today=true" >> "$GITHUB_OUTPUT" | ||
else | ||
if gh api --jq .body /repos/${{github.repository}}/releases/latest > ${{env.NOTES_LATEST}} 2>/dev/null; then | ||
echo "notes=${{env.NOTES_LATEST}}" >> "$GITHUB_OUTPUT" | ||
fi | ||
if gh api --jq .body /repos/${{github.repository}}/releases/latest > ${{env.NOTES_LATEST}} 2>/dev/null; then | ||
echo "notes=${{env.NOTES_LATEST}}" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Build Distro | ||
uses: grafana/[email protected] | ||
if: ${{ steps.latest.outputs.today != 'true' }} | ||
uses: grafana/[email protected] | ||
id: build | ||
with: | ||
args: "${{ inputs.args }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.