Skip to content

Commit 42312a0

Browse files
authored
ci: fix lint action on forked repositories (#231)
Closes #224
1 parent d4ce6d5 commit 42312a0

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/dependabot-sync.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232

3333
- uses: actions/checkout@v5
3434
with:
35-
repository: ${{ github.repository_owner }}/meta
36-
path: ${{ github.repository_owner }}/meta
35+
repository: charmbracelet/meta
36+
path: charmbracelet/meta
3737
token: ${{ secrets.gh_token || secrets.PERSONAL_ACCESS_TOKEN }}
3838

3939
- run: |
4040
mkdir -p "${{ github.repository_owner }}/${{ inputs.repo_name }}/.github/workflows"
41-
cp "${{ github.repository_owner }}/meta/dependabot/workflows/dependabot-sync.yml" "${{ github.repository_owner }}/${{ inputs.repo_name }}/.github/workflows/dependabot-sync.yml"
42-
cp "${{ github.repository_owner }}/meta/dependabot/dependabot.yml" "${{ github.repository_owner }}/${{ inputs.repo_name }}/.github/dependabot.yml"
43-
DEPENDABOT_FILE="${{ github.repository_owner }}/meta/dependabot/dependabot-${{ inputs.repo_name }}.yml"
41+
cp "charmbracelet/meta/dependabot/workflows/dependabot-sync.yml" "${{ github.repository_owner }}/${{ inputs.repo_name }}/.github/workflows/dependabot-sync.yml"
42+
cp "charmbracelet/meta/dependabot/dependabot.yml" "${{ github.repository_owner }}/${{ inputs.repo_name }}/.github/dependabot.yml"
43+
DEPENDABOT_FILE="charmbracelet/meta/dependabot/dependabot-${{ inputs.repo_name }}.yml"
4444
if [ -f "$DEPENDABOT_FILE" ]; then
4545
cat "$DEPENDABOT_FILE" >> "${{ github.repository_owner }}/${{ inputs.repo_name }}/.github/dependabot.yml"
4646
fi

.github/workflows/lint-sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
path: ${{ github.repository }}
1616
- uses: actions/checkout@v5
1717
with:
18-
repository: ${{ github.repository_owner }}/meta
19-
path: ${{ github.repository_owner }}/meta
18+
repository: charmbracelet/meta
19+
path: charmbracelet/meta
2020
- run: |
21-
cp ${{ github.repository_owner }}/meta/golangci.yml ${{ github.repository }}/.golangci.yml
21+
cp charmbracelet/meta/golangci.yml ${{ github.repository }}/.golangci.yml
2222
rm -rf ${{ github.repository }}/.golangci-soft.yml
2323
- name: Create Pull Request
2424
id: cpr

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
path: ${{ github.repository }}
4343
- uses: actions/checkout@v5
4444
with:
45-
repository: ${{ github.repository_owner }}/meta
46-
path: ${{ github.repository_owner }}/meta
45+
repository: charmbracelet/meta
46+
path: charmbracelet/meta
4747
- name: Install Go
4848
uses: actions/setup-go@v5
4949
with:

0 commit comments

Comments
 (0)