Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
with:
dependabot: true
pull-request: ${{ github.event.pull_request.number }}
pull-request-title: ${{ github.event.pull_request.title }}
secrets:
PULL_REQUEST_UPDATE_TOKEN: ${{ secrets.PULL_REQUEST_UPDATE_TOKEN }}

Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/update-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
type: number
required: false
default: 0
pull-request-title:
type: string
required: false
default: ''

jobs:
is-fork-pull-request:
Expand Down Expand Up @@ -185,6 +189,35 @@ jobs:
path: packages/examples/packages
key: cache-examples-${{ needs.prepare.outputs.COMMIT_SHA }}

update-chrome:
name: Update Chrome
runs-on: ubuntu-latest
if: ${{ inputs.dependabot == true && contains(inputs.pull-request-title, 'chromedriver') }}
needs:
- prepare
- dedupe-yarn-lock
steps:
- name: Restore yarn.lock
uses: actions/cache/restore@v4
with:
path: yarn.lock
key: cache-yarn-lock-${{ needs.prepare.outputs.COMMIT_SHA }}
fail-on-cache-miss: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies from cache
run: yarn --immutable
- name: Update Chrome
run: yarn update-chrome
- name: Cache install script
uses: actions/cache/save@v4
with:
path: scripts/install-chrome.sh
key: cache-chrome-${{ needs.prepare.outputs.COMMIT_SHA }}

commit-result:
name: Commit result
runs-on: ubuntu-latest
Expand All @@ -193,6 +226,7 @@ jobs:
- dedupe-yarn-lock
- regenerate-lavamoat-policies
- update-examples
- update-chrome
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -245,5 +279,17 @@ jobs:
run: |
git add packages/examples/packages
git commit -m "${COMMIT_PREFIX}Update example snaps" || true
- name: Restore install script
if: ${{ inputs.dependabot == true && contains(inputs.pull-request-title, 'chromedriver') }}
uses: actions/cache/restore@v4
with:
path: scripts/install-chrome.sh
key: cache-chrome-${{ needs.prepare.outputs.COMMIT_SHA }}
fail-on-cache-miss: true
- name: Commit install script
if: ${{ inputs.dependabot == true && contains(inputs.pull-request-title, 'chromedriver') }}
run: |
git add scripts/install-chrome.sh
git commit -m "${COMMIT_PREFIX}Update install Chrome script" || true
- name: Push changes
run: git push
Loading