Skip to content

Commit 20318e6

Browse files
committed
fix: provide release repository context
1 parent 074604b commit 20318e6

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/scheduled-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
CUSTOM_NAME: ${{ needs.resolve.outputs.name }}
109109
CUSTOM_PORT: ${{ needs.resolve.outputs.port }}
110110
FRIDA_VERSION: ${{ needs.resolve.outputs.version }}
111+
GH_REPO: ${{ github.repository }}
111112
GH_TOKEN: ${{ github.token }}
112113

113114
steps:

tests/test_workflows.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ def test_release_publishes_every_file_covered_by_sha256sums() -> None:
108108
assert "release-assets/*.gz" not in release_command
109109

110110

111+
def test_release_targets_repository_without_requiring_checkout() -> None:
112+
text = workflow_text("scheduled-build.yml")
113+
release_job = text.split(" release:", 1)[1]
114+
assert "GH_REPO: ${{ github.repository }}" in release_job
115+
116+
111117
def test_dependabot_updates_pinned_actions_weekly() -> None:
112118
text = Path(".github/dependabot.yml").read_text(encoding="utf-8")
113119
assert "package-ecosystem: github-actions" in text

0 commit comments

Comments
 (0)