cf #480
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: Publish zig1 | |
on: | |
repository_dispatch: | |
types: | |
- cf | |
permissions: | |
contents: write | |
jobs: | |
regenerate: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Replace url and version | |
run: | | |
python fetch_latest.py | |
cat Formula/zig.rb | |
- name: Commit and push | |
run: |- | |
git config user.name "Automated" | |
git config user.email "actions@users.noreply.github.com" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Update zig: ${timestamp}" || exit 0 | |
git pull --rebase | |
git push |