Scrap from Xcode #86
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: Scrap from Xcode | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 1" # Every Monday at 00:00 UTC | |
jobs: | |
scrap: | |
# update to newer version when available | |
# https://github.com/actions/runner-images#available-images | |
runs-on: macos-15 | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Use latest Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest | |
- name: Check Xcode version | |
run: | | |
echo "Xcode path: $(xcode-select -p)" | |
xcodebuild -version | |
xcodebuild -showsdks | |
- name: Install Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Run scrape-from-xcode.ts | |
run: | | |
deno run --allow-run --allow-read --allow-write scripts/scrape-from-xcode.ts | |
- name: Get current date | |
id: date | |
run: | | |
echo "MONTH_YEAR=$(date +'%B %Y')" >> $GITHUB_OUTPUT | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: "feat: add identifiers for ${{ steps.date.outputs.MONTH_YEAR }} models" | |
commit-message: "feat: add identifiers for ${{ steps.date.outputs.MONTH_YEAR }} models" | |
branch: scrap/xcode |