Skip to content

Commit

Permalink
Assign eQuantum
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Sep 23, 2024
1 parent 84f6a7f commit 6af8964
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/entrypoint/artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ jekyll_build() {
[[ $1 == *"github.io"* ]] && OWNER=$2
echo 'TARGET_REPOSITORY='${OWNER}/$1 >> ${GITHUB_ENV}
if [[ $1 != "eq19.github.io" ]]; then SITEID=$(( $3 + 2 )); else SITEID=1; fi

if [[ "${OWNER}" == "eq19" ]]; then
sed -i "1s|^|description: An attempt to discover the Final Theory\n\n|" ${RUNNER_TEMP}/_config.yml
echo 'LATEST_COMMIT='$(curl -s "https://api.github.com/users/eq19/events/public" | jq ".[0].payload.commits[0].message") >> ${GITHUB_ENV}
else
DESCRIPTION=$(gh api -H "${HEADER}" /orgs/${OWNER} --jq '.description')
sed -i "1s|^|description: ${DESCRIPTION}\n\n|" ${RUNNER_TEMP}/_config.yml
Expand Down Expand Up @@ -118,11 +119,6 @@ jekyll_build() {
cp -R ${RUNNER_TEMP}/gistdir/* . && mkdir ${RUNNER_TEMP}/workdir/_data
mv -f ${RUNNER_TEMP}/orgs.json ${RUNNER_TEMP}/workdir/_data/orgs.json

git clone --single-branch -b gh-pages https://github.com/${OWNER}/$1 ${RUNNER_TEMP}/$1 &>/dev/null
[[ -d ${RUNNER_TEMP}/$1/docs ]] && mv -f ${RUNNER_TEMP}/$1/docs .
mv -f ${RUNNER_TEMP}/$1/.jekyll-metadata . &>/dev/null
mv -f ${RUNNER_TEMP}/$1/.sass-cache . &>/dev/null
mv -f ${RUNNER_TEMP}/$1/.git . &>/dev/null
}

# Get structure on gist files
Expand Down

0 comments on commit 6af8964

Please sign in to comment.