CompatHelper #2
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: 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 remote set-url origin git@github.com:${{ github.repository }}.git | |
| - name: CompatHelper.main() | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} | |
| run: julia -e 'using CompatHelper; CompatHelper.main()' |