diff --git a/.github/workflows/create_preview_sites.yml b/.github/workflows/create_preview_sites.yml index aaef5d5f8b234..7c3eebed0d53b 100644 --- a/.github/workflows/create_preview_sites.yml +++ b/.github/workflows/create_preview_sites.yml @@ -22,6 +22,9 @@ on: description: "Request endpoint" required: true +permissions: + issues: write + jobs: create_preview_site: runs-on: ubuntu-latest @@ -102,5 +105,3 @@ jobs: issue_number: issueNumber, body: `Your preview site for the **${APP_NAME}** will be ready in a few minutes, please allow time for it to build. \n \n Heres your preview link: \n [${APP_NAME} preview](https://${SANITIZED_BRANCH_NAME}.${APP_ID}.amplifyapp.com)` }); - - diff --git a/scripts/environment/bootstrap-ubuntu-20.04.sh b/scripts/environment/bootstrap-ubuntu-20.04.sh index f0ca6777b670b..2ccb4b56d052c 100755 --- a/scripts/environment/bootstrap-ubuntu-20.04.sh +++ b/scripts/environment/bootstrap-ubuntu-20.04.sh @@ -124,30 +124,6 @@ if ! [ -x "$(command -v node)" ]; then corepack enable fi -# Hugo (static site generator). -# Hugo is used to build the website content. -# Note: the installed version should match the version specified in 'netlify.toml' -TEMP=$(mktemp -d) -curl \ - -L https://github.com/gohugoio/hugo/releases/download/v0.84.0/hugo_extended_0.84.0_Linux-64bit.tar.gz \ - -o "${TEMP}/hugo_extended_0.84.0_Linux-64bit.tar.gz" -tar \ - -xvf "${TEMP}/hugo_extended_0.84.0_Linux-64bit.tar.gz" \ - -C "${TEMP}" -cp "${TEMP}/hugo" /usr/bin/hugo -rm -rf "$TEMP" - -# htmltest (HTML checker for the website content) -TEMP=$(mktemp -d) -curl \ - -L https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz \ - -o "${TEMP}/htmltest_0.17.0_linux_amd64.tar.gz" -tar \ - -xvf "${TEMP}/htmltest_0.17.0_linux_amd64.tar.gz" \ - -C "${TEMP}" -cp "${TEMP}/htmltest" /usr/bin/htmltest -rm -rf "$TEMP" - # Apt cleanup apt-get clean