use cloudflare mail routing #16
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: check for pull request into master | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| preview: | |
| runs-on: ubuntu-latest | |
| env: | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_READ_API_TOKEN }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: setup DNS control | |
| run: | | |
| cd $PWD | |
| wget -q https://github.com/StackExchange/dnscontrol/releases/download/v4.8.2/dnscontrol_4.8.2_linux_amd64.tar.gz | |
| tar -zxvf dnscontrol_4.8.2_linux_amd64.tar.gz | |
| chmod +x dnscontrol | |
| - name: errorCheck | |
| run: ./dnscontrol --no-colors=true check | |
| - name: preview | |
| run: ./dnscontrol --no-colors=true preview | tee preview_result.txt | |
| - name: comment_preview | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: ( echo '```' && cat preview_result.txt && echo '```' ) | gh pr comment ${{ github.event.pull_request.number }} -F - |