Skip to content

Commit

Permalink
Add rename script test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Aug 2, 2024
1 parent 7566c64 commit 1bab8fb
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test_rename.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Rename Script CI

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
rename_test:
name: Rename Script Test
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.0

- name: Run rename.rb
run: |
chmod +x rename.rb
./rename.rb your_plugin_name
- name: Verify Renaming
run: |
if [ ! -f "README.md" ]; then
echo "README.md not found!"
exit 1
fi
if [ ! -f ".github/workflows/ci.yml" ]; then
echo ".github/workflows/ci.yml not found!"
exit 1
fi
echo "All files renamed successfully!"

0 comments on commit 1bab8fb

Please sign in to comment.