We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c6e0d commit 963587fCopy full SHA for 963587f
.github/workflows/create-tag.yml
@@ -0,0 +1,23 @@
1
+name: Create tag
2
+on: [push]
3
+
4
+jobs:
5
+ create-tag:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v4
9
+ - uses: actions/setup-python@v5
10
+ with:
11
+ python-version: "3.12"
12
+ - name: Install local package
13
+ run: pip install .
14
+ - name: Extract version
15
+ run: |
16
+ VERSION=$(python -c "import importlib.metadata; print(importlib.metadata.version('oc4ids-datastore-pipeline'))")
17
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
18
+ - name: Print version
19
+ run: echo $VERSION
20
+ - name: Create tag
21
22
+ git tag "v${VERSION}"
23
+ git push origin "v${VERSION}"
0 commit comments