Skip to content

Configure DNS

Configure DNS #600

Workflow file for this run

name: AllUp
on:
pull_request:
types:
- opened
- synchronize
- reopened
schedule:
- cron: '26 1 * * 5'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
env:
TZ: Asia/Shanghai
jobs:
AllUp:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.0.0
- name: Setup Python
uses: actions/setup-python@v5.1.0
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python Dependencies
run: pip install -r requirements.txt
- name: Configure DNS
run: |
sudo systemd-resolve --set-dns=114.114.114.114 --set-dns=223.6.6.6
cat /run/systemd/resolve/resolv.conf
sudo systemctl restart systemd-resolved.service
- name: Main
run: python main.py
env:
BOT_PASSWORD: ${{ secrets.BOT_PASSWORD }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
GITHUB_REF: ${{ github.ref }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
- name: Preview on Pull Request
if: ${{ github.event_name == 'pull_request' }}
uses: thollander/actions-comment-pull-request@v2.4.2
with:
filePath: PR_preview.md
comment_tag: actions-wikitext-preview