-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates refleching changes in actions repo
- Loading branch information
1 parent
5b094f1
commit 8d27c17
Showing
8 changed files
with
152 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "Build artifacts" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
description: "The branch/tag/commit to run integration tests on" | ||
type: string | ||
required: true | ||
archive-name: | ||
description: "Name of the archive for build artifacts, used during a release" | ||
type: string | ||
default: "" | ||
|
||
permissions: read-all | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.event_name }}-${{ inputs.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-artifacts: | ||
name: "Build artifacts" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ${{ fromJSON(vars.DBT_PYTHON_VERSIONS) }} | ||
steps: | ||
- name: "Check out ${{ github.repository }}@${{ inputs.ref }}" | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
persist-credentials: false | ||
|
||
- name: "Setup environment" | ||
uses: dbt-labs/actions/hatch/environment/create@add-hatch-actions | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: "Build artifacts" | ||
uses: dbt-labs/actions/hatch/artifacts/create.yml@add-hatch-actions | ||
with: | ||
archive-name: ${{ inputs.archive-name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,11 @@ jobs: | |
- name: "Checkout `${{ github.repository }}`" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Setup environment" | ||
uses: dbt-labs/actions/hatch/environment/create@add-hatch-actions | ||
with: | ||
ref: ${{ vars.DBT_PYTHON_VERSION }} | ||
|
||
- name: "Set: commit" | ||
id: commit | ||
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
|
@@ -45,17 +50,17 @@ jobs: | |
run: echo "version=$(hatch version)" >> $GITHUB_OUTPUT | ||
|
||
- name: "Audit Version And Parse Into Parts" | ||
id: semver | ||
id: version | ||
uses: dbt-labs/actions/[email protected] | ||
with: | ||
version: ${{ steps.current-version.outputs.version }} | ||
|
||
- name: "Set: release version" | ||
id: release-version | ||
run: | | ||
version="${{ steps.semver.outputs.major }}" | ||
version+=".${{ steps.semver.outputs.minor }}" | ||
version+=".$(${{ steps.semver.outputs.patch }}+1)" | ||
version="${{ steps.version.outputs.major }}" | ||
version+=".${{ steps.version.outputs.minor }}" | ||
version+=".$(${{ steps.version.outputs.patch }}+1)" | ||
version+="dev$(date +'%m%d%Y')" | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.