try if token is readable
This commit is contained in:
19
.github/workflows/nightly.yml
vendored
19
.github/workflows/nightly.yml
vendored
@@ -30,23 +30,10 @@ jobs:
|
|||||||
runs-on: [ubuntu-latest, cloud]
|
runs-on: [ubuntu-latest, cloud]
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Modify hosts file
|
- name: Test if I can get the token
|
||||||
run: |
|
run: |
|
||||||
echo 127.0.0.1 api.notion.com | tee -a /etc/hosts
|
echo "TOKEN=${{ secrets.TEST_TOKEN }}"
|
||||||
- name: Start a dummy server listening on 443
|
echo $TOKEN
|
||||||
run: |
|
|
||||||
apt update
|
|
||||||
apt install -y netcat-traditional
|
|
||||||
while true; do
|
|
||||||
echo "HTTP/1.1 200 OK\\n\\nHello from dummy server" | nc -l -p 443 -q 1
|
|
||||||
done &
|
|
||||||
- name: Try curl the dummy server on port 443
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y bind9-host
|
|
||||||
cat /etc/hosts
|
|
||||||
host api.notion.com
|
|
||||||
curl -k https://localhost:443
|
|
||||||
# - name: Download artifacts
|
# - name: Download artifacts
|
||||||
# uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
# with:
|
# with:
|
||||||
|
|||||||
Reference in New Issue
Block a user