Skip to content

Commit 4378c48

Browse files
committed
Removes local workflow in favor of repo workflow;
1 parent 76a0624 commit 4378c48

2 files changed

Lines changed: 26 additions & 10 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update Library References
2+
run-name: update library refs
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
update-hash:
10+
name: Update hash
11+
runs-on: windows-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
- name: Setup Configurations
16+
run: |
17+
git config --global user.name ${{ secrets.USER_NAME }}
18+
git config --global user.email ${{ secrets.EMAIL }}
19+
- name: Update references with new hash
20+
shell: pwsh
21+
run: |
22+
$CommitHash = (git rev-parse HEAD)
23+
Get-Item "./f95/*", "./lc/*" | ForEach-Object -Process {(Get-Content $_) -replace '[a-f0-9]{40}', $CommitHash | Set-Content $_}
24+
git add -A
25+
git commit --amend --no-edit
26+
git push --force origin main

commit.ps1

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)