Skip to content

compile

compile #679

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
---
name: compile
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: curl/curl.wiki
path: curl.wiki
- id: check
run: |
SOURCE_HASH=$(sha256sum curl.wiki/DNS-over-HTTPS.md | cut -d' ' -f1)
CUR_HASH=$(head -1 doh-list.txt | sed 's/#*//')
if [[ $SOURCE_HASH != $CUR_HASH ]]; then
echo "should_compile=true" >> $GITHUB_OUTPUT
fi
- if: ${{ steps.check.outputs.should_compile == 'true' }}
run: ./update-doh-list.sh
- if: ${{ steps.check.outputs.should_compile == 'true' }}
uses: wranders/ghapp-token-action@v1
id: get-token
with:
app_id: ${{ secrets.APP_ID }}
app_key_pem: ${{ secrets.APP_PRIVATE_KEY }}
- if: ${{ steps.check.outputs.should_compile == 'true' }}
uses: wranders/commit-action@v0
with:
token: ${{ steps.get-token.outputs.token }}
message: Updated doh-list.txt
files: |
doh-list.txt