From 8cd09601b1d4809cd52c3e06a6f4b93ae16e73b6 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Sun, 27 Nov 2022 17:17:15 +0000 Subject: [PATCH] ci: Bump actions/* to v3 in haskell-ci workflow This gets rid of the deprecation warnings about https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/haskell-ci-dependabot.patch | 23 +++++++++++++++++++ .github/workflows/haskell-ci-hackage.patch | 4 ++-- .github/workflows/haskell-ci.yml | 8 +++---- cabal.haskell-ci | 1 + 4 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/haskell-ci-dependabot.patch diff --git a/.github/workflows/haskell-ci-dependabot.patch b/.github/workflows/haskell-ci-dependabot.patch new file mode 100644 index 00000000..2f4db72c --- /dev/null +++ b/.github/workflows/haskell-ci-dependabot.patch @@ -0,0 +1,23 @@ +Bump some GitHub Actions versions to prevent Dependabot from opening pull +requests every time we regenerate the haskell-ci workflow. + +--- .github/workflows/haskell-ci.yml.orig ++++ .github/workflows/haskell-ci.yml +@@ -190,7 +190,7 @@ jobs: + chmod a+x $HOME/.cabal/bin/cabal-plan + cabal-plan --version + - name: checkout +- uses: actions/checkout@v2 ++ uses: actions/checkout@v3 + with: + path: source + - name: autoreconf +@@ -231,7 +231,7 @@ jobs: + $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all + cabal-plan + - name: cache +- uses: actions/cache@v2 ++ uses: actions/cache@v3 + with: + key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} + path: ~/.cabal/store diff --git a/.github/workflows/haskell-ci-hackage.patch b/.github/workflows/haskell-ci-hackage.patch index cc45e227..2e551ce9 100644 --- a/.github/workflows/haskell-ci-hackage.patch +++ b/.github/workflows/haskell-ci-hackage.patch @@ -57,12 +57,12 @@ set in GitHub repository secrets. $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all + - name: upload artifacts (sdist) + if: matrix.upload -+ uses: actions/upload-artifact@v2 ++ uses: actions/upload-artifact@v3 + with: + path: ${{ github.workspace }}/sdist/*.tar.gz + - name: upload artifacts (haddock) + if: matrix.upload -+ uses: actions/upload-artifact@v2 ++ uses: actions/upload-artifact@v3 + with: + path: ${{ github.workspace }}/haddock/*-docs.tar.gz + - name: hackage upload (candidate) diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index 9e7f8482..8b76d763 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -170,7 +170,7 @@ jobs: chmod a+x $HOME/.cabal/bin/cabal-plan cabal-plan --version - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: source - name: initial cabal.project for sdist @@ -216,7 +216,7 @@ jobs: $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all cabal-plan - name: cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} path: ~/.cabal/store @@ -247,12 +247,12 @@ jobs: $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all - name: upload artifacts (sdist) if: matrix.upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: path: ${{ github.workspace }}/sdist/*.tar.gz - name: upload artifacts (haddock) if: matrix.upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: path: ${{ github.workspace }}/haddock/*-docs.tar.gz - name: hackage upload (candidate) diff --git a/cabal.haskell-ci b/cabal.haskell-ci index d70d6e4e..9f0b02a9 100644 --- a/cabal.haskell-ci +++ b/cabal.haskell-ci @@ -7,6 +7,7 @@ apt: libxss-dev github-patches: + .github/workflows/haskell-ci-dependabot.patch .github/workflows/haskell-ci-hackage.patch raw-project