Update GHC #78
This file contains 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: Update GHC | |
on: | |
schedule: | |
# run weekly on Thursday | |
- cron: '0 15 * * THU' | |
workflow_dispatch: # allows manual triggering | |
jobs: | |
update_ghc: | |
name: GHC ${{ matrix.ghc }} Update | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ghc: | |
- '9.2' | |
- '9.4' | |
- '9.6' | |
- '9.8' | |
- '9.10' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
- uses: cachix/install-nix-action@v30 | |
with: | |
nix_path: nixpkgs=nixpkgs/default.nix | |
- name: Fetch updates | |
id: ghc_update | |
run: nix shell 'nixpkgs#bazel-buildtools' 'nixpkgs#python3' --command python .github/update-ghc.py ${{ matrix.ghc }} | |
- name: Create Pull Request | |
if: steps.ghc_update.outputs.latest != '' | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: "Add GHC bindist version ${{ steps.ghc_update.outputs.latest }}" | |
title: "[update] GHC ${{ matrix.ghc }}" | |
branch: "automation/update-ghc-${{ matrix.ghc }}" | |
base: master | |
token: "${{ secrets.PR_TRIGGER_TOKEN }}" |