Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: temporarily disable test #4

Merged
merged 4 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
- main
# 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@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: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 }}