CompatHelper #4
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: CompatHelper | |
| on: | |
| schedule: | |
| - cron: '00 00 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| CompatHelper: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Pkg.add("CompatHelper") | |
| run: julia -e 'using Pkg; Pkg.add("CompatHelper")' | |
| - name: Set up SSH for CompatHelper | |
| env: | |
| COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "$COMPATHELPER_PRIV" | base64 -d > ~/.ssh/id_rsa | |
| chmod 600 ~/.ssh/id_rsa | |
| ssh-keyscan github.com >> ~/.ssh/known_hosts | |
| git config --global url."git@github.com:".insteadOf "https://github.com/" | |
| - name: Show git remote | |
| run: git remote -v | |
| - name: CompatHelper.main() | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} | |
| run: julia -e 'using CompatHelper; CompatHelper.main()' |