Skip to content

Update example dependencies #383

Update example dependencies

Update example dependencies #383

name: Update example dependencies
on:
schedule:
- cron: '0 12 * * *'
# for testing, temporarily allow manual triggering
workflow_dispatch:
jobs:
update-example-deps:
name: Update Momento deps in examples
runs-on: ubuntu-latest
env:
# TODO: remove token stored as secret in favor of using a
# momento-local instance that can be spun up for testing
MOMENTO_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Run update script
id: validation
run: |
./scripts/update-all-examples-dependencies.sh
git status
- name: Open PR
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
commit-message: "chore: update momento dependency in examples\n\nAutomated commit created by update-example-deps workflow"
title: "chore: update momento dependency in examples"
team-reviewers: "momentohq/dev-eco"