Files
ipsw/.github/workflows/webkit-meta.yml
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
015c20d91e chore(deps): bump actions/cache from 3 to 4 (#386)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 09:53:48 -07:00

46 lines
1.3 KiB
YAML

name: "WebKitMETA"
on:
schedule:
- cron: "00 01,13 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Cache go.mod
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run build
run: |
make build
- name: Run download git --json --webkit
run: ./ipsw download git --json --api ${{ secrets.GITHUB_TOKEN }} --output /tmp --webkit
- name: Switch branch
run: |
git stash
git checkout apple_meta
- name: Commit WebKit JSON
run: |
go install github.com/josephburnett/jd@v1.5.1
jd -set /tmp/webkit_tags.json github/webkit_tags.json || true
mv /tmp/webkit_tags.json github/webkit_tags.json
git --no-pager diff github/webkit_tags.json
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -am "AppleMETA WebKit refresh"
git push