https://github.com/splitio/split-locator
Split Locator is a Github Action that recursively scans repositories for splits in the source.
https://github.com/splitio/split-locator
Last synced: 3 months ago
JSON representation
Split Locator is a Github Action that recursively scans repositories for splits in the source.
- Host: GitHub
- URL: https://github.com/splitio/split-locator
- Owner: splitio
- Created: 2022-05-02T19:17:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-19T19:27:34.000Z (over 3 years ago)
- Last Synced: 2024-12-21T14:38:30.828Z (about 1 year ago)
- Language: HTML
- Size: 1.01 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Split Locator
Currently works with HTML/js code only.
## Outputs
The filename, and line number of each reference to a split is pushed into a report.html (you have control over output, as shown below).
## Example Usage
```
name: split-locator
on: [push]
jobs:
split_locator_job:
runs-on: ubuntu-latest
name: A job to find splits
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout
uses: splitio/split-locator@1.2.0
- name: Split Locator action step
uses: splitio/split-locator@1.2.0 # Uses an action in the root directory
id: sl
# Use the output from the action step
- name: Get output splits
run: echo "sl ${{ steps.sl.outputs.splits }}"
- name: Modify value # Tried to modify the files based on existing testfile.txt
run: |
echo "${{ steps.sl.outputs.splits }}" >> report.html
- name: move to dir # Move the generated files into output folder
run: |
rm -fR output
mkdir -p output
yes| cp -rf report.html ./output/
- name: Commit files # commit the output folder
run: |
git config --local user.email "david.martin@split.io"
git config --local user.name "GitHub Action Report Test"
git add ./output
git commit -m "add report"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
```