Skip to content

Commit 63b4aae

Browse files
chore: update action URLs (#16)
1 parent a18fcf7 commit 63b4aae

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

actions/release_changelog/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ runs:
6262
changelog += 'The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\n'
6363
changelog += 'and this project adheres to [Calendar Versioning](https://calver.org/).\n\n'
6464
changelog += 'This changelog was automatically generated by the\n'
65-
changelog += '[update-changelog-action](https://github.com/LizardByte/update-changelog-action).\n\n'
65+
changelog += 'LizardByte [release_changelog](https://github.com/LizardByte/actions) action.\n\n'
6666
6767
// loop through each release
6868
releases = releases.reverse()

actions/release_homebrew/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ runs:
115115
with:
116116
repository: ${{ inputs.org_homebrew_repo }}
117117
ref: ${{ inputs.org_homebrew_repo_branch }}
118-
path: ${{ github.workspace }}/homebrew-release-action/org_homebrew_repo
118+
path: ${{ github.workspace }}/release_homebrew_action/org_homebrew_repo
119119
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of the personal token
120120
fetch-depth: 1
121121

@@ -124,7 +124,7 @@ runs:
124124
uses: actions/checkout@v4
125125
with:
126126
repository: ${{ inputs.homebrew_core_fork_repo }}
127-
path: ${{ github.workspace }}/homebrew-release-action/homebrew_core_fork_repo
127+
path: ${{ github.workspace }}/release_homebrew_action/homebrew_core_fork_repo
128128
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of the personal token
129129
fetch-depth: 1
130130

@@ -157,7 +157,7 @@ runs:
157157
author_email: ${{ inputs.git_email }}
158158
author_name: ${{ inputs.git_username }}
159159
branch: ${{ inputs.org_homebrew_repo_branch }} # commit to target branch
160-
directory: ${{ github.workspace }}/homebrew-release-action/org_homebrew_repo
160+
directory: ${{ github.workspace }}/release_homebrew_action/org_homebrew_repo
161161
github_token: ${{ inputs.token }}
162162
message: "Update ${{ github.repository }} to ${{ github.sha }}"
163163
repository: ${{ inputs.org_homebrew_repo }}
@@ -169,7 +169,7 @@ runs:
169169
author_email: ${{ inputs.git_email }}
170170
author_name: ${{ inputs.git_username }}
171171
branch: ${{ steps.homebrew-tests.outputs.homebrew_core_branch }}
172-
directory: ${{ github.workspace }}/homebrew-release-action/homebrew_core_fork_repo
172+
directory: ${{ github.workspace }}/release_homebrew_action/homebrew_core_fork_repo
173173
force: true # need to force since the branch is sometimes reset
174174
github_token: ${{ inputs.token }}
175175
message: "Update ${{ github.repository }} to ${{ github.sha }}"
@@ -180,7 +180,7 @@ runs:
180180
GH_TOKEN: ${{ inputs.token }}
181181
if: ${{ inputs.contribute_to_homebrew_core == 'true' && inputs.publish == 'true' }}
182182
shell: bash
183-
working-directory: ${{ github.workspace }}/homebrew-release-action/homebrew_core_fork_repo
183+
working-directory: ${{ github.workspace }}/release_homebrew_action/homebrew_core_fork_repo
184184
run: |
185185
# Check if a pull request already exists with the same head branch
186186
PR_EXISTS=$(gh pr list \
@@ -197,7 +197,7 @@ runs:
197197
--head ${{ steps.homebrew-tests.outputs.homebrew_core_branch }} \
198198
--title "Update ${{ github.repository }} to ${{ github.sha }}" \
199199
--body \
200-
"Created by [LizardByte/homebrew-release-action](https://github.com/LizardByte/homebrew-release-action)" \
200+
"Created by the LizardByte [release_homebrew](https://github.com/LizardByte/actions) action" \
201201
--no-maintainer-edit \
202202
--repo ${{ inputs.upstream_homebrew_core_repo }}
203203
else

actions/release_homebrew/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
TEMP_DIRECTORIES = []
2525
HOMEBREW_BUILDPATH = ""
2626

27-
temp_repo = os.path.join('homebrew-release-action', 'homebrew-test')
27+
temp_repo = os.path.join('release_homebrew_action', 'homebrew-test')
2828

2929
og_dir = os.getcwd()
3030

@@ -130,7 +130,7 @@ def prepare_homebrew_core_fork(
130130
print('Preparing Homebrew/homebrew-core fork')
131131

132132
# checkout a new branch
133-
branch_name = f'homebrew-release-action/{branch_suffix}'
133+
branch_name = f'release_homebrew_action/{branch_suffix}'
134134

135135
print(f'Attempt to create new branch {branch_name}')
136136
result = _run_subprocess(
@@ -229,9 +229,9 @@ def process_input_formula(formula_file: str) -> str:
229229
)
230230

231231
org_homebrew_repo = os.path.join(
232-
os.environ['GITHUB_WORKSPACE'], 'homebrew-release-action', 'org_homebrew_repo')
232+
os.environ['GITHUB_WORKSPACE'], 'release_homebrew_action', 'org_homebrew_repo')
233233
homebrew_core_fork_repo = os.path.join(
234-
os.environ['GITHUB_WORKSPACE'], 'homebrew-release-action', 'homebrew_core_fork_repo')
234+
os.environ['GITHUB_WORKSPACE'], 'release_homebrew_action', 'homebrew_core_fork_repo')
235235
print(f'org_homebrew_repo: {org_homebrew_repo}')
236236
print(f'homebrew_core_fork_repo: {homebrew_core_fork_repo}')
237237

tests/release_homebrew/Formula/hello_world.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class HelloWorld < Formula
22
desc "Simple program that outputs 'Hello, World!'"
33
homepage "https://app.lizardbyte.dev"
4-
url "https://github.com/LizardByte/homebrew-release-action.git"
4+
url "https://github.com/LizardByte/actions.git"
55
version "0.0.1"
66

77
def install

tests/release_homebrew/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def operating_system():
5252

5353
@pytest.fixture(scope='function') # todo: fix repo deletion
5454
def homebrew_core_fork_repo():
55-
directory = os.path.join(os.environ['GITHUB_WORKSPACE'], 'homebrew-release-action')
55+
directory = os.path.join(os.environ['GITHUB_WORKSPACE'], 'release_homebrew_action')
5656
os.makedirs(directory, exist_ok=True)
5757

5858
repo = 'homebrew_core_fork_repo'

tests/release_homebrew/test_release_homebrew.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ def test_get_brew_repository(operating_system):
7676

7777
def test_prepare_homebrew_core_fork(homebrew_core_fork_repo, operating_system):
7878
main.prepare_homebrew_core_fork(
79-
branch_suffix='homebrew-release-action-tests',
79+
branch_suffix='release_homebrew_action_tests',
8080
path=homebrew_core_fork_repo
8181
)
8282

8383
# assert that the current branch is the branch we created
8484
branch = get_current_branch(cwd=homebrew_core_fork_repo)
85-
assert branch.endswith('homebrew-release-action-tests')
85+
assert branch.endswith('release_homebrew_action_tests')
8686

8787

8888
def test_process_input_formula(operating_system):
@@ -100,8 +100,8 @@ def test_process_input_formula(operating_system):
100100
assert formula == 'hello_world'
101101

102102
dirs = [
103-
os.path.join(os.environ['GITHUB_WORKSPACE'], 'homebrew-release-action', 'org_homebrew_repo'),
104-
os.path.join(os.environ['GITHUB_WORKSPACE'], 'homebrew-release-action', 'homebrew_core_fork_repo'),
103+
os.path.join(os.environ['GITHUB_WORKSPACE'], 'release_homebrew_action', 'org_homebrew_repo'),
104+
os.path.join(os.environ['GITHUB_WORKSPACE'], 'release_homebrew_action', 'homebrew_core_fork_repo'),
105105
]
106106

107107
for d in dirs:
@@ -383,7 +383,7 @@ def test_prepare_homebrew_core_fork_failure(mock_run, homebrew_core_fork_repo, o
383383
# Test that the function raises SystemExit when both branch operations fail
384384
with pytest.raises(SystemExit):
385385
main.prepare_homebrew_core_fork(
386-
branch_suffix='homebrew-release-action-tests',
386+
branch_suffix='release_homebrew_action_tests',
387387
path=homebrew_core_fork_repo
388388
)
389389

0 commit comments

Comments
 (0)