All NPM Update #389
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: All NPM Update | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
workflow_dispatch: | |
jobs: | |
create-update-branch: | |
name: "Create Update Branch" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
fetch-depth: '25' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: true | |
- name: Update All NPM Deps | |
run: ./gradlew ncuUpgrade --no-configuration-cache --scan | |
- name: Clean | |
run: ./gradlew clean | |
- name: Update Yarn Lock | |
run: ./gradlew kotlinUpgradeYarnLock | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
branch: "create-pull-request/${{github.job}}/${{github.run_id}}" | |
commit-message: "[create-pull-request] ${{github.workflow}}" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
delete-branch: true | |
- name: Enable Pull Request Automerge | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
uses: peter-evans/enable-pull-request-automerge@v2 | |
with: | |
token: ${{ secrets.COUPLING_PAT }} | |
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | |
merge-method: rebase |