File tree Expand file tree Collapse file tree 3 files changed +5
-36
lines changed
Expand file tree Collapse file tree 3 files changed +5
-36
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- tags :
8- - ' */*'
97 pull_request :
108 types : [opened, reopened, synchronize]
119
1210jobs :
11+
1312 deploy-test :
1413 name : ' Deploy to test'
1514 uses : ./.github/workflows/dabs.yml
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
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+
Original file line number Diff line number Diff line change 22__pycache__ /
33* .py [cod ]
44* $py.class
5-
5+ .mise.toml
66# C extensions
77* .so
88
You can’t perform that action at this time.
0 commit comments