Skip to content

Commit

Permalink
disable nightly workflow till fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 authored Jul 8, 2024
1 parent 0e59c04 commit bca670d
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Build site nightly
# name: Build site nightly

on:
schedule:
- cron: "0 0 * * *"
# on:
# schedule:
# - cron: "0 0 * * *"

jobs:
dot-release:
name: dot-release
runs-on: ubuntu-latest
# jobs:
# dot-release:
# name: dot-release
# runs-on: ubuntu-latest

steps:
- name: curl
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
uses: wei/curl@v1
with:
args: -X POST -d '{}' "$NETLIFY_BUILD_HOOK"
# steps:
# - name: curl
# env:
# NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
# uses: wei/curl@v1
# with:
# args: -X POST -d '{}' "$NETLIFY_BUILD_HOOK"

- name: Check response status
run: |
response=$(curl -s -o response.txt -w "%{http_code}" -X POST -d '{}' "$NETLIFY_BUILD_HOOK")
if [ "$response" -ne 200 ]; then
echo "Build trigger failed with status: $response"
cat response.txt
exit 1
fi
# - name: Check response status
# run: |
# response=$(curl -s -o response.txt -w "%{http_code}" -X POST -d '{}' "$NETLIFY_BUILD_HOOK")
# if [ "$response" -ne 200 ]; then
# echo "Build trigger failed with status: $response"
# cat response.txt
# exit 1
# fi

0 comments on commit bca670d

Please sign in to comment.