This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
Reset component-updates branch #39
Workflow file for this run
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: | |
name: 'Reset component-updates branch' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
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 |