force_deploy.yml (1536B)
1 --- 2 name: Force deploy 3 on: 4 workflow_dispatch: 5 repository_dispatch: 6 types: [force-deploy-command] 7 jobs: 8 force_deploy: 9 permissions: 10 issues: write 11 pull-requests: write 12 contents: read 13 statuses: write 14 runs-on: ubuntu-latest 15 if: github.event.client_payload.pull_request 16 steps: 17 - name: Set commit status as pending 18 uses: myrotvorets/set-commit-status-action@master 19 with: 20 status: pending 21 context: Force deploying changes 22 sha: ${{ github.event.client_payload.pull_request.head.sha }} 23 - uses: actions/checkout@v3 24 with: 25 ref: ${{ github.event.client_payload.pull_request.head.ref }} 26 - uses: actions/setup-python@v4 27 with: 28 python-version: '3.12' 29 - run: pip install -r requirements.txt 30 - uses: solvaholic/octodns-sync@main 31 with: 32 config_path: config/production.yaml 33 force: "Yes" 34 doit: --doit 35 env: 36 POWERDNS_API_KEY_NS1: ${{ secrets.POWERDNS_API_KEY_NS1 }} 37 POWERDNS_API_KEY_NS2: ${{ secrets.POWERDNS_API_KEY_NS2 }} 38 POWERDNS_API_KEY_NS3: ${{ secrets.POWERDNS_API_KEY_NS3 }} 39 CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} 40 41 - name: Set final commit status 42 uses: myrotvorets/set-commit-status-action@master 43 if: always() 44 with: 45 sha: ${{ github.event.client_payload.pull_request.head.sha }} 46 status: ${{ job.status }} 47 context: Force deploying changes