Skip to content

Commit

Permalink
chore: Refactor github workflows to group key top level w (#28554) (#…
Browse files Browse the repository at this point in the history
…29506)

* Change file naming convention for actions and workflows.
* Workflows do not allow subfolders so file naming prefix used to
provide structure.
* Clearly separate new core cicd workflows and actions from workflows
related to Issue management and non cicd processes, categorize existing
legacy release workflows that have not been migrated yet to prevent
confusion and be clear on work to be done.
* Add README files and documentation on the whole workflow

Impacts
Although this is mostly a non functional change with just the file paths
and references to them updated as well as the workflow titles to be
consistent there are a couple of things to consider.
1. This updates the badges on the project root README to the new
workflow filenames. These will remain broken links though until the code
goes through the merge queue and into the nightly build.
2. Due to the change in workflow name the old and new workflow names
will be grouped separately in the Actions page, Once the PR is merged we
should replace the bookmarked workflow.

This PR resolves #28554 (Refactor github workflows to group key top
level w).
  • Loading branch information
spbolton authored Aug 14, 2024
1 parent 8e57564 commit d9fcd27
Show file tree
Hide file tree
Showing 109 changed files with 1,113 additions and 15,882 deletions.
30 changes: 19 additions & 11 deletions .github/actions/buildActions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@ set -e

mode=${1}

for d in $(ls) ; do
[[ ! -d ${d} || ! -f ${d}/package.json || -z "$(cat ${d}/action.yml | grep "using: 'node*")" ]] && continue
echo "Building Github Action ${d}"
pushd ${d}
if [[ "${mode}" == 'clean' ]]; then
[[ -d ./node_modules ]] && rm -rf ./node_modules
npm install
fi
npm run all
popd
done
function process_directory {
for d in "$1"/* ; do
[[ ! -d ${d} ]] && continue
if [[ -f ${d}/package.json && -n "$(cat ${d}/action.yml | grep "using: 'node*")" ]]; then
echo "Building Github Action ${d}"
pushd ${d}
if [[ "${mode}" == 'clean' ]]; then
[[ -d ./node_modules ]] && rm -rf ./node_modules
npm install
fi
npm run all
popd
else
process_directory "${d}"
fi
done
}

process_directory .
3 changes: 0 additions & 3 deletions .github/actions/cleanup-gh-packages/.prettierignore

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/cleanup-gh-packages/.prettierrc.json

This file was deleted.

30 changes: 0 additions & 30 deletions .github/actions/cleanup-gh-packages/action.yml

This file was deleted.

Loading

0 comments on commit d9fcd27

Please sign in to comment.