-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: enable test * feat: enable test * feat: enable test * feat: enable test * feat: enable test
- Loading branch information
Showing
1 changed file
with
45 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,46 @@ | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
# jobs: | ||
# release: | ||
# name: Build GitHub Action | ||
# runs-on: ubuntu-latest | ||
# container: node:16 | ||
# steps: | ||
# - name: Install packages | ||
# run: apt-get update && apt-get install -y rsync git | ||
# - uses: actions/[email protected] | ||
# - name: Install dependencies | ||
# run: npm ci && npm install -g @vercel/ncc | ||
# - name: Build release | ||
# run: npm run lint && npm run build && npm run pack | ||
# - name: Copy files to release | ||
# run: | | ||
# mkdir release | ||
# cp README.md release/ | ||
# cp action.yml release/ | ||
# cp -R dist/ release/dist/ | ||
# - name: Start Bright Discovery π | ||
# id: discovery | ||
# uses: NeuraLegion/run-discovery@push-node-version | ||
# with: | ||
# api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
# name: GitHub discovery ${{ github.sha }} | ||
# project_id: ${{ vars.PROJECT_ID }} | ||
# hostname: ${{ vars.HOSTNAME }} | ||
# discovery_types: | | ||
# [ "crawler" ] | ||
# crawler_urls: | | ||
# [ "https://brokencrystals.com" ] | ||
# hosts_filter: | | ||
# [ ] | ||
# - name: Stop the discovery π | ||
# id: stop | ||
# uses: ./release | ||
# with: | ||
# api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
# discovery: ${{ steps.discovery.outputs.id }} | ||
jobs: | ||
release: | ||
name: Build GitHub Action | ||
runs-on: ubuntu-latest | ||
container: node:20 | ||
steps: | ||
- name: Install packages | ||
run: apt-get update && apt-get install -y rsync git | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm ci && npm install -g @vercel/ncc | ||
- name: Build release | ||
run: npm run lint && npm run build && npm run pack | ||
- name: Copy files to release | ||
run: | | ||
mkdir release | ||
cp README.md release/ | ||
cp action.yml release/ | ||
cp -R dist/ release/dist/ | ||
- name: Start Bright Discovery π | ||
id: discovery | ||
uses: NeuraLegion/run-discovery@release | ||
with: | ||
api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
name: GitHub discovery ${{ github.sha }} | ||
project_id: ${{ vars.PROJECT_ID }} | ||
hostname: ${{ vars.HOSTNAME }} | ||
discovery_types: | | ||
[ "crawler" ] | ||
crawler_urls: | | ||
[ "https://brokencrystals.com" ] | ||
hosts_filter: | | ||
[ ] | ||
- name: Stop the discovery π | ||
id: stop | ||
uses: ./release | ||
with: | ||
api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
discovery_id: ${{ steps.discovery.outputs.id }} | ||
project_id: ${{ vars.PROJECT_ID }} | ||
hostname: ${{ vars.HOSTNAME }} |