Automatic repo changes on creation #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automatic repo changes on creation | |
on: | |
create: | |
jobs: | |
build: | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out the code | |
uses: actions/[email protected] | |
- name: Make changes | |
run: | | |
sed -i "s/%REPO_NAME%/${{ 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.login }}/g" bot_setup.iss | |
rm -f .github/workflows/repo-creation.yml | |
- name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
push: origin HEAD:master | |
default_author: github_actions | |
message: "setup: replace placeholders, remove setup workflow" |