Update GHC #135
  
    
      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: 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-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ghc: | |
| - '9.2' | |
| - '9.4' | |
| - '9.6' | |
| - '9.8' | |
| - '9.10' | |
| - '9.12' | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| ref: master | |
| - uses: cachix/install-nix-action@456688f15bc354bef6d396e4a35f4f89d40bf2b7 # v31.8.2 | |
| with: | |
| nix_path: nixpkgs=nixpkgs/default.nix | |
| - name: Fetch updates | |
| id: ghc_update | |
| run: |- | |
| nix-shell -p 'bazel-buildtools' 'python3.withPackages (ps: [ps.packaging])' --run \ | |
| 'python .github/update-ghc.py ${{ matrix.ghc }}' | |
| - name: Create Pull Request | |
| if: steps.ghc_update.outputs.latest != '' | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| 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 }}" |