Bump kotlin nightlies #3
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: Bump kotlin nightlies | |
on: | |
schedule: | |
- cron: '0 2 * * *' | |
workflow_dispatch: | |
jobs: | |
push-kotlin-nightlies-branch: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Bump Kotlin version | |
run: ./scripts/bump-kotlin-nightlies.main.kts | |
- name: Push changes to kotlin-nightlies branch | |
run: | | |
git checkout -b kotlin-nightlies | |
git add . | |
git commit -m "Bump Kotlin version" | |
git push --force origin kotlin-nightlies | |
# Trigger a workflow manually because actions cannot trigger workflows to avoid endless loops | |
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs | |
- name: Trigger pr workflow | |
run: | | |
gh workflow run pr --ref kotlin-nightlies | |
env: | |
GH_TOKEN: ${{ github.token }} |