Last active
December 4, 2023 13:10
-
-
Save datYori/2f1544b118962c5dd34c49735ebe14b1 to your computer and use it in GitHub Desktop.
trigger new gha workflow from non default branch
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
gh api -XPATCH "repos/raw-labs/$REPO_NAME" -f default_branch="$(git symbolic-ref --short HEAD)" > /dev/null && gh workflow run $WORKFLOW_FULL_NAME && gh api -XPATCH "repos/raw-labs/$REPO_NAME" -f default_branch="$REPO_DEFAULT_BRANCH" > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment