-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SITE-1585] Move check-commits into GitHub actions (#146)
* just add a step that runs the script this may or may not work depending on how GHA sources files, but we'll start here * specify the path * run a git fetch before running the script * check out default branch so we have a local copy * check out a local copy of default * don't warn about detached head * allow changes to ci.yml * remove `variable` * create a failure status artifact don't run playwright tests if ci failed * don't create a status file if it already exists * create an aggregate status file * use the same php-version matrix * remove aggregate status * pull and aggregate all statuses * update perms and add logging * trigger on workflow dispatch * remove status checks * trigger workflow on success * add token * re-add the status artifacts * go back to running on PR * wait for the status artifacts and check them before running the tests * remove test job * add missing done * add some debugging code * make the files unique * allow gh run download to fail * upload the artifacts * add a comment when we're done checking the linting status * comment on the PR * update permissions * exclude status check files
- Loading branch information
1 parent
b4fa658
commit 498e705
Showing
4 changed files
with
195 additions
and
5 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
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 |
---|---|---|
|
@@ -70,7 +70,7 @@ copy_pr_updates() { | |
echo "Commit Message: ${commit_msg}" | ||
cd ~/pantheon-local-copies/"${site_id}" | ||
echo -e "${YELLOW}Copying latest changes and committing to the site.${RESET}" | ||
rsync -a --exclude='.git' "${workspace}"/ . | ||
rsync -a --exclude='.git' --exclude='status-*.txt' "${workspace}/" . | ||
git add -A | ||
git commit -m "Update to latest commit: ${commit_msg}" || true | ||
git push origin master || true | ||
|
@@ -90,7 +90,7 @@ install_wp() { | |
if [[ "${type}" == 'subdom' ]]; then | ||
is_subdomains="true" | ||
fi | ||
|
||
terminus wp "${site_id}".dev -- core multisite-install --title="${site_name}" --admin_user=wpcm [email protected] --subdomains="$is_subdomains" --url="${site_url}" | ||
|
||
terminus wp "${site_id}".dev -- option update permalink_structure '/%postname%/' | ||
|
@@ -144,7 +144,7 @@ set_up_subsite() { | |
else | ||
# Create the sub-site only if it does not already exist. | ||
terminus wp "${site_id}".dev -- site create --slug=foo --title="Foo" --email="[email protected]" | ||
terminus wp "${site_id}".dev -- option update permalink_structure '/%postname%/' --url="$URL" | ||
terminus wp "${site_id}".dev -- option update permalink_structure '/%postname%/' --url="$URL" | ||
fi | ||
terminus wp "${site_id}".dev -- option update permalink_structure '/%postname%/' --url="$URL" | ||
} | ||
|
@@ -162,7 +162,7 @@ install_wp_graphql() { | |
elif [ "${type}" == 'subdir' ]; then | ||
url="${site_url}/foo" | ||
fi | ||
|
||
# activate if not single site | ||
if [[ -n "$url" ]]; then | ||
terminus wp "${site_id}.dev" -- plugin activate wp-graphql --url="$url" | ||
|