From e76de37b7d27ce6613a171cae3858794c9c42f59 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Wed, 21 Dec 2022 16:08:16 +0100 Subject: [PATCH 1/2] Update GitHub Actions --- .github/workflows/ci.yml | 6 ++---- .github/workflows/docs.yml | 21 +++++++++------------ 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0298a508..cd3f3546 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,17 +17,15 @@ jobs: steps: - name: Install Crystal - uses: oprypin/install-crystal@v1 + uses: crystal-lang/install-crystal@v1 with: crystal: ${{ matrix.crystal }} - name: Download source - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install dependencies run: shards install - env: - SHARDS_OPTS: --ignore-crystal-version - name: Run specs run: make test diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 14b60f5f..8848dba4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,20 +9,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Inject slug/short variables - uses: rlespinasse/github-slug-action@v3.x + uses: rlespinasse/github-slug-action@v4 - name: Install Crystal - uses: oprypin/install-crystal@v1 + uses: crystal-lang/install-crystal@v1 - name: Download source - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Install dependencies run: shards install - env: - SHARDS_OPTS: --ignore-crystal-version - name: Build docs run: | @@ -30,7 +28,7 @@ jobs: crystal docs --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}" - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: docs path: docs @@ -40,15 +38,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: docs path: docs - name: Deploy docs 🚀 - uses: JamesIves/github-pages-deploy-action@3.7.1 + uses: JamesIves/github-pages-deploy-action@4 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: docs - CLEAN: true + branch: gh-pages + folder: docs + clean: true From 5ff8d2593afc19e984a6407f23915427c1aecdcd Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Wed, 21 Dec 2022 16:09:05 +0100 Subject: [PATCH 2/2] Add Dependabot config --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..52ded593 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily