Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mojib committed Apr 7, 2024
1 parent e6f95c6 commit 3381f7c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 165 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ jobs:
run: |
npm ci
npm run build
npm run lint
135 changes: 5 additions & 130 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,130 +1,5 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
#dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
node_modules
.idea
npm-debug.log
.vscode
.cert
16 changes: 8 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26877,12 +26877,12 @@ const pollPipeline = async (host, projectId, token, pipelineId, webUrl) => {
}

async function run() {
const host = encodeURIComponent(core.getInput('host'));
const projectId = encodeURIComponent(core.getInput('id'));
const triggerToken = core.getInput('trigger_token');
const accessToken = core.getInput('access_token');
const ref = core.getInput('ref');
const variables = JSON.parse(core.getInput('variables'));
const host = encodeURIComponent(core.getInput('URL'));
const projectId = encodeURIComponent(core.getInput('PROJECT_ID'));
const triggerToken = core.getInput('GITLB_TRIGGER_TOKEN');
// const accessToken = core.getInput('access_token');
const ref = core.getInput('REF_NAME');
const variables = JSON.parse(core.getInput('PIPELINE_VARIABLES'));

console.log(`Triggering pipeline ${projectId} with ref ${ref} on ${host}!`);

Expand Down Expand Up @@ -26917,8 +26917,8 @@ async function run() {
core.setOutput("web_url", data.web_url);
console.log(`Pipeline id ${data.id} triggered! See ${data.web_url} for details.`);

// poll pipeline status
await pollPipeline(host, projectId, accessToken, data.id, data.web_url);
// // poll pipeline status
// await pollPipeline(host, projectId, accessToken, data.id, data.web_url);
} catch (error) {
core.setFailed(error.message);
}
Expand Down
21 changes: 16 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
"keywords": [],
"author": "",
"devDependencies": {
"eslint": "^9.0.0",
"typescript": "^5.4.4",
"@vercel/ncc": "^0.38.1"
"@vercel/ncc": "^0.38.1",
"eslint": "^9.0.0"
},
"dependencies": {
"@actions/core": "^1.10.1"

}
}

0 comments on commit 3381f7c

Please sign in to comment.