Skip to content

Commit 63baedd

Browse files
committed
Handle branch deletion
1 parent 5499875 commit 63baedd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/branch-deleted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
ref: hakyll
1414

1515
- name: Remove stale deployments
16-
run: ./.github/workflows/deployment/delete.sh $GITHUB_REF_NAME
16+
run: ./.github/workflows/deployment/delete.sh ${{ github.event.ref }}

.github/workflows/deployment/deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ set -eo pipefail
77
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
88
source $script_dir/commons.sh
99

10+
# Monkey patch html files by adding <meta name="robots" content="noindex, nofollow">.
11+
# It will tell search bots like googlebot not to index this content.
12+
search_robots_noindex() {
13+
# find
14+
}
15+
1016
deploy() {
1117
if [[ ! -z "$GITHUB_REF_NAME" ]]; then
1218
# The GITHUB_REF_NAME env variable is available in github actions.

0 commit comments

Comments
 (0)