Reset component-updates branch #38
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 component-updates branch | |
on: | |
workflow_dispatch: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
resetBranch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Checkout component-updates | |
run: | | |
git checkout -b component-updates | |
- name: Reset branch | |
run: | | |
git reset --hard origin/main | |
- name: Push | |
run: | | |
git push --set-upstream origin component-updates --force |