Reset Destructive Manifests 🌀 #31
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: Reset Destructive Manifests 🌀 | |
# Trigger Events | |
on: | |
workflow_dispatch: | |
branches: | |
- main | |
- develop | |
# Jobs | |
jobs: | |
reset-destructive-manifests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- name: 'Install NPM Dependencies' | |
run: npm install | |
- name: 'Reset Manifests & Commit Changes' | |
run: | | |
# Set Git user info (required step) | |
git config --global user.name "${{github.actor}}" | |
# Invoke script that resets content of destructive manifests, commits changes & pushes them to remote branch | |
bash ./scripts/automations/reset_and_commit_destructive_manifests.sh |