Skip to content

Commit

Permalink
Create reset-repository.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidedigrande authored Oct 24, 2023
1 parent c692de2 commit fc40782
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/reset-repository.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: reset-repository
run: |
git config --global user.name "davidedigrande"
git config --global user.email "[email protected]"
git rm -r --cached .
git commit -m "Remove old resume"
git switch --orphan update
git add .
git commit -m "Update resume"
git branch -D main
git branch -m main
git push origin +main:main

0 comments on commit fc40782

Please sign in to comment.