update #32
This file contains hidden or 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: update | |
on: | |
schedule: | |
- cron: "0 12 * * *" | |
workflow_dispatch: | |
jobs: | |
main: | |
name: Push updates | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ github.token }} | |
permissions: | |
actions: write | |
contents: write | |
steps: | |
- uses: Homebrew/actions/setup-homebrew@master | |
- run: brew install ddev/ddev/ddev >/dev/null | |
- uses: actions/checkout@v4 | |
- name: 'Run updates and commit' | |
run: | | |
./update.sh | |
if [[ `git status --porcelain` ]]; then | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add . | |
git commit -m "build: automatic update.sh updates (GA)" | |
git push | |
gh workflow run tests | |
fi | |
keepalive: | |
name: Keepalive Workflow | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gautamkrishnar/keepalive-workflow@v2 |