Skip to content

Commit

Permalink
fix: temporarily disable test
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkor committed Dec 16, 2024
1 parent ad8d8f6 commit 02b7200
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 69 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,35 @@ name: Release
on:
push:
branches:
- master
- main

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
- uses: actions/checkout@v3
- name: Install dependencies
run: npm ci -q
- name: Build release
run: |
npm run lint
npm run build
npm run pack
- name: Copy files to release
run: |
mkdir release
cp LICENSE release/
cp README.md release/
cp action.yml release/
cp -R dist/ release/dist/
- name: Push changes to the branch
uses: JamesIves/[email protected]
with:
branch: release
folder: release

- name: Install packages
run: |
apt-get update
apt-get install -y rsync
- uses: actions/checkout@v3
- name: Install dependencies
run: npm ci -q
- name: Build release
run: |
npm run lint
npm run build
npm run pack
- name: Copy files to release
run: |
mkdir release
cp LICENSE release/
cp README.md release/
cp action.yml release/
cp -R dist/ release/dist/
- name: Push changes to the branch
uses: JamesIves/[email protected]
with:
branch: release
folder: release
86 changes: 43 additions & 43 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
on:
push:
branches:
- master
# on:
# push:
# branches:
# - main

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@release
with:
api_token: ${{ secrets.BRIGHTSEC_TOKEN }}
name: GitHub discovery ${{ github.sha }}
project: ${{ 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 }}
scan: ${{ steps.discovery.outputs.id }}
# 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 }}

0 comments on commit 02b7200

Please sign in to comment.