Prune EAS branches #720
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: Prune EAS branches | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "42 0 * * *" # ahah funny number | |
jobs: | |
prune: | |
name: Prune EAS branches | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetch all branches to get the remote ones | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Log remote branches | |
run: git branch -r | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Setup Expo | |
uses: expo/expo-github-action@v7 | |
with: | |
expo-version: latest | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: Prune EAS branches | |
run: yarn run prune-branches |