Skip to content

Commit

Permalink
ci: Add post-init action
Browse files Browse the repository at this point in the history
  • Loading branch information
madskjeldgaard committed Jul 22, 2024
1 parent 532389a commit 00a3e66
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/init.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ame: Init project from template

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: create

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
if: github.ref == 'refs/heads/master'

# The type of runner that the job will run on
runs-on: ubuntu-latest

# After the temmplate has been created, the job will run the following steps


steps:
- name: Checkout code
- uses: actions/checkout@v3

# Search and replace the original URL with the new github URL in the Readme.md file
# The original url is https://github.com/madskjeldgaard/platformio-arduino-template
# Find and replace it with the new URL of your repository
- name: Search and replace URL
run: |
sed -i 's|https://github.com/madskjeldgaard/platformio-arduino-template|${{ github.event.repository.html_url }}|g' README.md

0 comments on commit 00a3e66

Please sign in to comment.