-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.41 KB
/
release_new_bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# **what?**
# This workflow creates a draft bundle for a single dbt version then publishes the draft
# This maps a semver string like "1.0.1" to a requirements file like
# "v1.1.latest.requirements.txt".
# **why?**
# To centralize the full release bundle process
# **when?**
# Manual triggered
# **how**
# Publish the draft release, test it and if everything is successful, publish the draft as a final release, tests again
name: Publish a New Bundle
run-name: Releasing bundle for ${{ inputs.version_number }}
on:
workflow_dispatch:
inputs:
version_number:
description: The release version number (i.e. 1.0.0b1).
type: string
required: true
workflow_call:
inputs:
version_number:
description: The release version number (i.e. 1.0.0b1).
type: string
required: true
permissions:
packages: read
contents: write
pull-requests: read
jobs:
release-draft-bundles:
name: Call Release Workflow for ${{ inputs.version_number }}
uses: ./.github/workflows/release_draft_bundle.yml
with:
version_number: ${{ inputs.version_number }}
publish-bundles:
if: ${{ always() }}
needs: [release-draft-bundles]
name: Call Release Workflow for ${{ inputs.version_number }}
uses: ./.github/workflows/publish_draft_bundle.yml
with:
tag: ${{ needs.release-draft-bundles.outputs.tag }}