Skip to content

ci: Add post-init action #1

ci: Add post-init action

ci: Add post-init action #1

Workflow file for this run

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