-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add bump git tags workflow Signed-off-by: Eduardo Apolinario <[email protected]> * Fix generation of next version Signed-off-by: Eduardo Apolinario <[email protected]> * Add docker-build back to integration tests dependencies Signed-off-by: Eduardo Apolinario <[email protected]> * Only run Component checks if there's any change to a component Signed-off-by: Eduardo Apolinario <[email protected]> * Add noop to trigger component checks --------- Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
- Loading branch information
1 parent
b59c083
commit 8090b16
Showing
5 changed files
with
113 additions
and
37 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,57 @@ | ||
name: Bump git tags | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
next_version: | ||
description: "Tag name" | ||
value: ${{ jobs.bump_version.outputs.next_version }} | ||
secrets: | ||
FLYTE_BOT_PAT: | ||
required: true | ||
jobs: | ||
bump_version: | ||
name: Bump Version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
next_version: ${{ steps.get_semver.outputs.next_version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' | ||
# Bump patch version | ||
- uses: rickstaa/action-get-semver@v1 | ||
id: get_semver | ||
with: | ||
bump_level: "patch" | ||
- name: Print current and next versions | ||
run: | | ||
echo "Current version: ${{ steps.get_semver.outputs.current_version }}" | ||
echo "Next version: ${{ steps.get_semver.outputs.next_version }}" | ||
# Generate all tags for all components | ||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.FLYTE_BOT_PAT }} | ||
script: | | ||
github.rest.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `refs/tags/${{ steps.get_semver.outputs.next_version }}`, | ||
sha: context.sha | ||
}) | ||
const components = [ | ||
"datacatalog", | ||
"flyteadmin", | ||
"flytecopilot", | ||
"flyteplugins", | ||
"flytepropeller", | ||
"flytestdlib", | ||
]; | ||
for (const c of components) { | ||
github.rest.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `refs/tags/${c}/${{ steps.get_semver.outputs.next_version }}`, | ||
sha: context.sha | ||
}) | ||
} |
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
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