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]
|
||||
needs: build
|
||||
steps:
|
||||
- name: Modify hosts file
|
||||
- name: Test if I can get the token
|
||||
run: |
|
||||
echo 127.0.0.1 api.notion.com | tee -a /etc/hosts
|
||||
- name: Start a dummy server listening on 443
|
||||
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
|
||||
echo "TOKEN=${{ secrets.TEST_TOKEN }}"
|
||||
echo $TOKEN
|
||||
# - name: Download artifacts
|
||||
# uses: actions/download-artifact@v3
|
||||
# with:
|
||||
|
||||
Reference in New Issue
Block a user