Skip to content

Commit

Permalink
Merge pull request #6163 from pavinduLakshan/update_hotfix_workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored May 6, 2024
2 parents 38ead27 + 1526026 commit f788faa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/hotfix-branch-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ jobs:
# Change the Release workflow to work with the hotfix branch.
echo "Changing the Release workflow to work with the hotfix branch."
# Check out the release script and release workflow from master branch.
#
# Note: This is done due to the hotfix workflow for identity-apps was added recently and therefore
# the related changes to release script[1] are not present in the older app versions. We may be able to
# remove this line once the older app versions are not being used, as by that time, the updated release script
# will be present in app versions that need to be hotfixed.
#
# [1] https://github.com/wso2/identity-apps/pull/6049
git checkout master -- .github/workflows/scripts/release.sh
git checkout master -- .github/workflows/release-workflow.yml
# Change the branch name in the release.yml file.
sed -i '/branches: \[ master \]/s/master/hotfix-'"${TAG//\//\\/}"'/' .github/workflows/release-workflow.yml
sed -i 's/BRANCH: .*/BRANCH: hotfix-'"${TAG//\//\\/}"'/' .github/workflows/release-workflow.yml
Expand Down

0 comments on commit f788faa

Please sign in to comment.