Skip to content

Commit 8db34e5

Browse files
changes
1 parent 935037d commit 8db34e5

File tree

3 files changed

+5
-36
lines changed

3 files changed

+5
-36
lines changed

.github/workflows/dabs.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -115,36 +115,4 @@ jobs:
115115
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
116116
DATABRICKS_BUNDLE_ENV: ${{ inputs.environment }}
117117

118-
generate-tags:
119-
name: 'Generate tags for ${{ matrix.item }}'
120-
runs-on: ubuntu-latest
121-
needs: [detect-changes, deploy-apps, deploy-packages]
122-
if: github.ref == 'refs/heads/main' && (needs.detect-changes.outputs.apps-changed == 'true' || needs.detect-changes.outputs.packages-changed == 'true')
123-
strategy:
124-
matrix:
125-
item: ${{ concat(needs.detect-changes.outputs.changed-apps, needs.detect-changes.outputs.changed-packages) }}
126-
steps:
127-
- uses: actions/checkout@v3
128-
with:
129-
fetch-depth: 0
130-
token: ${{ secrets.GITHUB_TOKEN }}
131118

132-
- name: Generate semantic version
133-
id: version
134-
run: |
135-
# Get current timestamp for patch version
136-
TIMESTAMP=$(date +%s)
137-
PATCH_VERSION=$((TIMESTAMP % 1000))
138-
139-
# Generate semantic version
140-
VERSION="1.0.${PATCH_VERSION}"
141-
142-
echo "version=$VERSION" >> $GITHUB_OUTPUT
143-
echo "Generated version: $VERSION"
144-
145-
- name: Create and push tag
146-
run: |
147-
TAG_NAME="${{ matrix.item }}-v${{ steps.version.outputs.version }}"
148-
git tag $TAG_NAME
149-
git push origin $TAG_NAME
150-
echo "Created tag: $TAG_NAME"

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
tags:
8-
- '*/*'
97
pull_request:
108
types: [opened, reopened, synchronize]
119

1210
jobs:
11+
1312
deploy-test:
1413
name: 'Deploy to test'
1514
uses: ./.github/workflows/dabs.yml
@@ -37,6 +36,7 @@ jobs:
3736
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
3837
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
3938

39+
4040
deploy-prod:
4141
name: 'Deploy to prod'
4242
uses: ./.github/workflows/dabs.yml
@@ -49,4 +49,5 @@ jobs:
4949
secrets:
5050
DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}
5151
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
52-
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
52+
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
53+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__pycache__/
33
*.py[cod]
44
*$py.class
5-
5+
.mise.toml
66
# C extensions
77
*.so
88

0 commit comments

Comments
 (0)