diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2024-06-20 21:44:12 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2024-10-11 13:54:55 -0700 |
| commit | ec02479ccf40b60e97fa946e23f7f9e3fa541432 (patch) | |
| tree | 4b5c0ddd532d62d743467963f4e62204b59f1090 /.github/workflows/linearize.yml | |
| parent | 578133bd32e5a31b3aa7a747841bd31e1fd93096 (diff) | |
| download | Simple-ec02479ccf40b60e97fa946e23f7f9e3fa541432.tar.gz Simple-ec02479ccf40b60e97fa946e23f7f9e3fa541432.zip | |
Automatically linearize chapter history
Diffstat (limited to '.github/workflows/linearize.yml')
| -rw-r--r-- | .github/workflows/linearize.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/linearize.yml b/.github/workflows/linearize.yml new file mode 100644 index 00000000..4b1828d3 --- /dev/null +++ b/.github/workflows/linearize.yml @@ -0,0 +1,25 @@ +name: Linearize chapter history + +on: + push: + branches: + - main + +jobs: + linearize: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: main + fetch-depth: 0 # Fetch the full history + - name: Construct linear history and push to linear branch + run: | + git config user.name 'GitHub Action' + git config user.email 'actions@github.com' + .github/workflows/linearize.sh + git remote add linear ./linear + git fetch linear + git checkout -b linear linear/main + git remote remove linear + git push -f origin linear |
