Skip to content

Commit 7493262

Browse files
wurstbrotclaude
andcommitted
fix: use correct GitHub repository context in workflow
Replace ${GITHUB_REPOSITORY} with ${{ github.repository }} in Docker build args to properly access the repository name from GitHub Actions context. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eedc9d3 commit 7493262

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ jobs:
5555
tags: wurstbrot/dsomm-yaml-generation:${{ steps.get-version.outputs.version }},wurstbrot/dsomm-yaml-generation:latest
5656
build-args: |
5757
DSOMM_VERSION=${{ steps.get-version.outputs.version }}
58-
GITHUB_REPOSITORY=${GITHUB_REPOSITORY}
58+
GITHUB_REPOSITORY=${{ github.repository }}
5959
- name: Extract generated files from docker image
6060
run: |
6161
docker run -d --name=yaml --entrypoint="/bin/sleep" wurstbrot/dsomm-yaml-generation:${{ steps.get-version.outputs.version }} 60
6262
docker cp yaml:/var/www/html/generated/model.yaml generated/model.yaml
6363
docker cp yaml:/var/www/html/generated/dependency-tree.md generated/dependency-tree.md
64+
- name: Force add ignored file
65+
run: git add -f generated/model.yaml generated/dependency-tree.md
6466
- name: Commit all changed files back to the repository
6567
uses: planetscale/ghcommit-action@v0.1.6
6668
with:

0 commit comments

Comments
 (0)