Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI

on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -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"
10 changes: 7 additions & 3 deletions .github/workflows/update-deps-github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
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:
runs-on: ubuntu-latest
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'
Expand Down
Loading