aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2022-06-01 12:44:27 -0700
committerGravatar MarkKoz <[email protected]>2022-06-01 12:44:27 -0700
commit761836e8bedf14152f7f3d162f93422c5c3541df (patch)
treed60c0a674ed7df0f7e933a420994a8eb62b1f0a5
parentMerge #141 - fix version commit count (diff)
CI: use version as release tag in Sentry action
-rw-r--r--.github/workflows/sentry_release.yaml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/sentry_release.yaml b/.github/workflows/sentry_release.yaml
index 43eb020..8c6298d 100644
--- a/.github/workflows/sentry_release.yaml
+++ b/.github/workflows/sentry_release.yaml
@@ -10,7 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@main
+ uses: actions/checkout@v2
+ with:
+ # The version script relies on history. Fetch 100 commits to be safe.
+ fetch-depth: 100
+
+ - name: Get version
+ id: version
+ run: |
+ set -eu
+ version=$(python scripts/version.py)
+ echo "::set-output name=version::version"
+ printf "%s\n" "${version}"
- name: Create a Sentry.io release
uses: tclindner/[email protected]
@@ -19,6 +30,6 @@ jobs:
SENTRY_ORG: python-discord
SENTRY_PROJECT: snekbox
with:
- tagName: ${{ github.sha }}
+ tagName: ${{ steps.version.outputs.version }}
environment: production
releaseNamePrefix: snekbox@