Skip to content

Commit

Permalink
Workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
kenariosz committed Nov 20, 2024
1 parent 8cd2b40 commit c56cf09
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,12 @@ jobs:
refs/heads/b-7.0.x*) TESTPLAN="~/defaults/7.0.x.yaml,${LIMIT70}~/twig-component.yaml" ;;
refs/heads/b-7.1.x*) TESTPLAN="~/defaults/7.1.x.yaml,${LIMIT}~/twig-component.yaml" ;;
refs/heads/b-7.2.x*) TESTPLAN="~/defaults/7.2.x.yaml,${LIMIT}~/twig-component.yaml" ;;
refs/heads/b-7.3.x*) TESTPLAN="~/defaults/7.3.x.yaml,${LIMIT}~/twig-component.yaml" ;;
refs/heads/b-8.0.x*) TESTPLAN="~/defaults/8.0.x.yaml,${LIMIT}~/twig-component.yaml" ;;
*)
echo "Can't match ${REF_TO_CHECK} to a version, can't determine test plan."
echo "Branch names should start with b-<major>.<minor>.x"
echo "Using the shop changelog to determine the shop version"
git clone --depth 2 "${{ github.repositoryUrl }}" --branch "${{ github.ref_name}}" --single-branch .tmp
if [ -f .tmp/CHANGELOG-3.x.md ]; then
TESTPLAN="~/defaults/8.0.x.yaml,${LIMIT}~/twig-component.yaml"
elif [ -f .tmp/CHANGELOG-2.x.md ]; then
TESTPLAN="~/defaults/7.2.x.yaml,${LIMIT}~/twig-component.yaml"
elif [ -f .tmp/CHANGELOG-2.x.md ]; then
TESTPLAN="~/defaults/7.1.x.yaml,${LIMIT}~/twig-component.yaml"
elif [ -f .tmp/CHANGELOG.md ]; then
TESTPLAN="~/defaults/7.0.x.yaml,${LIMIT}~/twig-component.yaml"
else
echo "Could not find any of CHANGELOG-8.0, CHANGELOG-7.2, CHANGELOG-71. or CHANGELOG-7.0"
echo "Still can't determine the test plan"
exit 1
fi
rm -rf .tmp
exit 1
;;
esac
echo "testplan=${TESTPLAN}" | tee -a "${GITHUB_OUTPUT}"
Expand Down

0 comments on commit c56cf09

Please sign in to comment.