mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-07-04 20:52:50 +08:00
Compare commits
3 Commits
ee4dc33d0f
...
3c795f9eb1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c795f9eb1 | ||
|
|
5e4714c4a5 | ||
|
|
510dc5b071 |
2
.github/workflows/__shared-ci.yml
vendored
2
.github/workflows/__shared-ci.yml
vendored
@ -7,7 +7,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@f5847cb398fe65d53794e6aba98ebdfa0801f691 # 0.32.0
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@4b53189212d5810f710bed89711002626977215b # 0.33.0
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
@ -10,7 +10,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
greetings:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@f5847cb398fe65d53794e6aba98ebdfa0801f691 # 0.32.0
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@4b53189212d5810f710bed89711002626977215b # 0.33.0
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
2
.github/workflows/main-ci.yml
vendored
2
.github/workflows/main-ci.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
||||
app-id: ${{ vars.CI_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
|
||||
|
||||
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@f5847cb398fe65d53794e6aba98ebdfa0801f691 # 0.32.0
|
||||
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@4b53189212d5810f710bed89711002626977215b # 0.33.0
|
||||
with:
|
||||
github-token: ${{ steps.generate-token.outputs.token }}
|
||||
branch: docs/actions-workflows-documentation-update
|
||||
|
||||
2
.github/workflows/need-fix-to-issue.yml
vendored
2
.github/workflows/need-fix-to-issue.yml
vendored
@ -19,7 +19,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@f5847cb398fe65d53794e6aba98ebdfa0801f691 # 0.32.0
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@4b53189212d5810f710bed89711002626977215b # 0.33.0
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
2
.github/workflows/semantic-pull-request.yml
vendored
2
.github/workflows/semantic-pull-request.yml
vendored
@ -11,7 +11,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@f5847cb398fe65d53794e6aba98ebdfa0801f691 # 0.32.0
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@4b53189212d5810f710bed89711002626977215b # 0.33.0
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@ -8,7 +8,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@f5847cb398fe65d53794e6aba98ebdfa0801f691 # 0.32.0
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@4b53189212d5810f710bed89711002626977215b # 0.33.0
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
2
Makefile
2
Makefile
@ -18,7 +18,7 @@ lint-fix: ## Execute linting and fix
|
||||
|
||||
ci: ## Execute all formats and checks
|
||||
@npm install
|
||||
@npm audit fix
|
||||
@npm audit fix || true
|
||||
@npm run all
|
||||
$(MAKE) lint-fix
|
||||
|
||||
|
||||
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
@ -996,6 +996,9 @@ const composeOptionsToArgs = (composeOptions) => {
|
||||
* Executes docker compose command with common options
|
||||
*/
|
||||
const execCompose = (command, args, options = {}) => new Promise((resolve, reject) => {
|
||||
if (options.compose) {
|
||||
options.configAsString = yaml_1.default.stringify(options.compose);
|
||||
}
|
||||
const composeOptions = options.composeOptions || [];
|
||||
const commandOptions = options.commandOptions || [];
|
||||
let composeArgs = composeOptionsToArgs(composeOptions);
|
||||
|
||||
3
dist/post.js
generated
vendored
3
dist/post.js
generated
vendored
@ -153,6 +153,9 @@ const composeOptionsToArgs = (composeOptions) => {
|
||||
* Executes docker compose command with common options
|
||||
*/
|
||||
const execCompose = (command, args, options = {}) => new Promise((resolve, reject) => {
|
||||
if (options.compose) {
|
||||
options.configAsString = yaml_1.default.stringify(options.compose);
|
||||
}
|
||||
const composeOptions = options.composeOptions || [];
|
||||
const commandOptions = options.commandOptions || [];
|
||||
let composeArgs = composeOptionsToArgs(composeOptions);
|
||||
|
||||
1280
package-lock.json
generated
1280
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -29,10 +29,10 @@
|
||||
"@actions/github": "^9.0.0",
|
||||
"@actions/tool-cache": "^4.0.0",
|
||||
"@octokit/action": "^8.0.4",
|
||||
"docker-compose": "^1.3.2"
|
||||
"docker-compose": "^1.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ts-dev-tools/core": "^1.11.1",
|
||||
"@ts-dev-tools/core": "^1.12.0",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"eslint-plugin-github": "^6.0.0",
|
||||
"eslint-plugin-jsonc": "^3.1.2"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user