Skip to content

Commit 7b24570

Browse files
committed
chore: hotfix translations-pr target git
1 parent 42f8bdf commit 7b24570

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/translations-pr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ jobs:
5757
steps:
5858
- name: Git Checkout
5959
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
60+
with:
61+
# By default Git Checkout on `pull-request-target` will checkout
62+
# the `default` branch of the Pull Request. We want to checkout
63+
# the actual branch of the Pull Request.
64+
ref: ${{ github.event.pull_request.head.ref }}
6065

6166
- name: Restore Lint Cache
6267
uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84

.husky/pre-commit

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
DIR=$(cd `dirname $0` && pwd -P)
5-
64
# if the generated files got tracked to this commit we revert them
7-
git reset $DIR/../public/node-releases-data.json
8-
git reset $DIR/../public/blog-posts-data.json
5+
git reset public/node-releases-data.json
6+
git reset public/blog-posts-data.json
97

108
# lint and format staged files
119
npx lint-staged

0 commit comments

Comments
 (0)