aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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@