Skip to content

Update release.yml

Update release.yml #2

Workflow file for this run

name: Setup Plugin
on:
push:
jobs:
init:
if: github.event.before == '0000000000000000000000000000000000000000'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Initialize
run: |
rm -rf LICENSE
rm -rf README.*
rm -rf .github/workflows/setup.yml
echo "# ${{ github.event.repository.name }}" > README.md
sed -i "s/%author%/${{ github.repository_owner }}/g" ./plugin/Plugin.php
sed -i "s|%link%|${{ github.event.repository.html_url }}|g" ./plugin/Plugin.php
sed -i "s/%name%/${{ github.event.repository.name }}/g" ./plugin/Plugin.php
sed -i "s/%description%/${{ github.event.description }}/g" ./plugin/Plugin.php
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Setup project for ${{ github.event.repository.name }}"