saleor-dashboard/.github/workflows/clean-envs.yml
wojteknowacki 771ce401fd
Test update snapshot keys (#3707)
* test-update-snaps
hot-keys

* new user for all devs - updated snapshot
2023-05-31 16:07:29 +02:00

33 lines
No EOL
723 B
YAML

name: Clean environments
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
branches: ["main"]
jobs:
cleanEnvironments:
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.CLOUD_ACCESS_TOKEN }}
SNAPSHOT: RL6ZWoTX
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
cd .github/workflows
npm ci
- name: clean environments
id: clean-environments
run: |
node .github/workflows/cleanEnvironments.js \
--token "$TOKEN" \
--snapshot "$SNAPSHOT"