Weekly #65
This file contains 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: Weekly | |
on: | |
schedule: | |
- cron: "0 12 * * Mon" | |
workflow_dispatch: | |
jobs: | |
integrations: | |
name: Update Themes & Integrations | |
if: github.repository_owner == 'withastro' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code using Git | |
uses: actions/checkout@v3 | |
- name: Install Tools & Dependencies | |
uses: ./.github/actions/install | |
- name: Search NPM for new and deprecated integrations | |
run: pnpm run update:integrations --unsafe | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Format generated files | |
run: pnpm lint:prettier | |
- name: Create Pull Request | |
id: createpr | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
branch: ci/docgen-integrations | |
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }} | |
add-paths: src/content/**/*.md | |
commit-message: "ci: update themes and integrations" | |
title: "ci: update themes and integrations" | |
body: | | |
This PR is auto-generated by a GitHub action that runs every Monday to update the themes and integrations catalogs with data from GitHub and NPM. | |
labels: ci | |
showcase: | |
name: Update Showcase Sites | |
if: github.repository_owner == 'withastro' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code using Git | |
uses: actions/checkout@v3 | |
- name: Install Tools & Dependencies | |
uses: ./.github/actions/install | |
- name: Run update:showcase script | |
id: showcase | |
run: pnpm run update:showcase | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Format generated files | |
run: pnpm lint:prettier | |
- name: Create Pull Request | |
id: createpr | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
branch: ci/docgen-showcase | |
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }} | |
add-paths: src/content/**/*.md,src/content/**/*.webp | |
commit-message: "ci: update showcase" | |
title: "ci: update showcase" | |
body: ${{ steps.showcase.outputs.prBody }} | |
labels: ci |