try if token is readable
All checks were successful
Run nightly tests / build (push) Successful in 1m25s
Run nightly tests / nightly-tests-play (push) Successful in 17s
Run short tests / run-tests (push) Successful in 1m57s

This commit is contained in:
2025-05-24 13:04:02 +02:00
parent 6d4ad23abb
commit 23df98f586

View File

@@ -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: