-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π§βπ» Release trigger action - second approach (#1011)
* β»οΈ Use `gh` CLI to trigger workflow Use `gh` CLI to trigger workflow rather than relying on `push:tags` trigger, which doesn't work. * π Bump version
- Loading branch information
Showing
3 changed files
with
18 additions
and
14 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
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 |
---|---|---|
|
@@ -35,19 +35,19 @@ jobs: | |
with: | ||
tag: v${{ steps.get-version.outputs.version }} | ||
|
||
- name: Set up git user | ||
# Note: we cannot use the default user here or things like fregante/setup-git-user@v1 | ||
# because this will magically not trigger the cd.yml workflow (it turns out the on:push:tags | ||
# trigger does not work for tags pushed using the GitHub Actions bot's token). | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Ludovico Bot" | ||
- uses: fregante/setup-git-user@v2 | ||
if: steps.check-tag.outputs.exists != 'true' | ||
|
||
- name: Publish the new tag | ||
# Trigger the cd.yml workflow if a new tag is detected. | ||
id: publish-tag | ||
if: steps.check-tag.outputs.exists != 'true' | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | ||
run: | | ||
git tag -a v${{ steps.get-version.outputs.version }} -m "Release v${{ steps.get-version.outputs.version }}" | ||
git push origin v${{ steps.get-version.outputs.version }} | ||
- name: Run the release workflow | ||
if: steps.check-tag.outputs.exists != 'true' | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | ||
run: gh workflow run cd.yml -f version=${{ steps.get-version.outputs.version }} --ref 2.0 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "viadot2" | ||
version = "2.1.10" | ||
version = "2.1.11" | ||
description = "A simple data ingestion library to guide data flows from some places to other places." | ||
authors = [ | ||
{ name = "acivitillo", email = "[email protected]" }, | ||
|