Skip to content

Commit

Permalink
feat(repo-creation.yml, bot_setup.iss): replace MyAppPublisher and My…
Browse files Browse the repository at this point in the history
…AppURL placeholders with repository owner name
  • Loading branch information
ToasterUwU committed Sep 25, 2023
1 parent 2b157f2 commit 99c489e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/repo-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
run: |
sed -i "s/Base Bot/${{ github.event.repository.name }} - Discord Bot/g" bot_setup.iss
sed -i "s/%APP_ID%/$(uuidgen)/g" bot_setup.iss
sed -i "s/%REPO_OWNER%/${{ github.event.repository.owner.name }}/g" bot_setup.iss
- name: Check for changes
run: |
Expand All @@ -29,4 +30,4 @@ jobs:
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "setup(bot_setup.iss): update application name and replace placeholder App ID"
message: "setup(bot_setup.iss): replace placeholders"
4 changes: 2 additions & 2 deletions bot_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define MyAppName "Base Bot"
#define MyAppVersion "1.0"
#define MyAppPublisher "ToasterUwU"
#define MyAppURL "https://github.com/ToasterUwU"
#define MyAppPublisher "%REPO_OWNER%"
#define MyAppURL "https://github.com/%REPO_OWNER%"
#define MyAppExeName "bot.exe"

[Setup]
Expand Down

0 comments on commit 99c489e

Please sign in to comment.