From 41b4010b9ebd71ac47196b2430c12b4381ecbd99 Mon Sep 17 00:00:00 2001 From: Kaspar Lyngsie Date: Wed, 29 Apr 2026 22:30:59 +0200 Subject: [PATCH] fix: aligned actions to proper conventions --- .github/workflows/ci.yml | 23 +++++++++++++++++++ .../workflows/update-deps-github-actions.yml | 10 +++++--- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbfff96..1352ec0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,7 @@ name: CI on: push: + pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -112,3 +113,25 @@ jobs: --prod \ --token=$VERCEL_TOKEN \ --yes + + ci-passed: + name: CI Passed + runs-on: ubuntu-latest + if: always() + needs: [install-pandoc, install-vercel-cli, generate_html, deploy_prod] + steps: + - name: Verify all jobs passed or were skipped + run: | + results=( + "${{ needs.install-pandoc.result }}" + "${{ needs.install-vercel-cli.result }}" + "${{ needs.generate_html.result }}" + "${{ needs.deploy_prod.result }}" + ) + for result in "${results[@]}"; do + if [[ "$result" == "failure" || "$result" == "cancelled" ]]; then + echo "Job failed or was cancelled: $result" + exit 1 + fi + done + echo "All jobs passed or were skipped" diff --git a/.github/workflows/update-deps-github-actions.yml b/.github/workflows/update-deps-github-actions.yml index 347e2f6..c62d492 100644 --- a/.github/workflows/update-deps-github-actions.yml +++ b/.github/workflows/update-deps-github-actions.yml @@ -1,8 +1,11 @@ name: Update GitHub Actions + on: workflow_dispatch: + + # Weekly on Mondays at 10 AM UTC schedule: - - cron: '0 0 * * 0' # Run every Sunday at midnight + - cron: '0 10 * * 1' jobs: update-actions: @@ -10,16 +13,17 @@ jobs: steps: - name: Create temporary GitHub App Token id: app - uses: actions/create-github-app-token@v2 + uses: actions/create-github-app-token@v3 with: - owner: ${{ github.repository_owner }} app-id: ${{ vars.HOUSEKEEPING_BOT_APP_ID }} private-key: ${{ secrets.HOUSEKEEPING_BOT_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} - name: Update GitHub Actions uses: alchemaxinc/update-deps/actions@v1 with: token: ${{ steps.app.outputs.token }} + app-slug: alchemax-housekeeper auto-merge: 'true' base-branch: 'main' prefixes: 'actions'