Skip to content

Commit

Permalink
update workflows. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dojyorin committed Nov 29, 2023
1 parent d57fa67 commit a9067b3
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "_fetch",
"on": {
"workflow_call": {
"outputs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: _fetch
on:
workflow_call:
outputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "_push",
"on": {
"workflow_call": {
"inputs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: _push
on:
workflow_call:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "_test",
"on": {
"workflow_call": {
"inputs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: _test
on:
workflow_call:
inputs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cron.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"jobs": {
"fetch": {
"uses": "./.github/workflows/action_fetch.yaml"
"uses": "./.github/workflows/_fetch.yaml"
},
"compare": {
"name": "compare",
Expand All @@ -21,7 +21,7 @@
}]
},
"test": {
"uses": "./.github/workflows/action_test.yaml",
"uses": "./.github/workflows/_test.yaml",
"with": {
"deno_v": "${{needs.fetch.outputs.deno_v}}"
},
Expand All @@ -31,7 +31,7 @@
]
},
"push": {
"uses": "./.github/workflows/action_push.yaml",
"uses": "./.github/workflows/_push.yaml",
"with": {
"deno_v": "${{needs.fetch.outputs.deno_v}}"
},
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- cron: 0 6 * * *
jobs:
fetch:
uses: ./.github/workflows/action_fetch.yaml
uses: ./.github/workflows/_fetch.yaml
compare:
name: compare
runs-on: ubuntu-latest
Expand All @@ -14,14 +14,14 @@ jobs:
- name: compare dockerhub tag and deno latest version
run: '! curl -Ls https://registry.hub.docker.com/v2/repositories/dojyorin/deno/tags?page_size=100 | yq ''"v" + .results[].name'' | grep -q ${{needs.fetch.outputs.deno_v}}'
test:
uses: ./.github/workflows/action_test.yaml
uses: ./.github/workflows/_test.yaml
with:
deno_v: ${{needs.fetch.outputs.deno_v}}
needs:
- fetch
- compare
push:
uses: ./.github/workflows/action_push.yaml
uses: ./.github/workflows/_push.yaml
with:
deno_v: ${{needs.fetch.outputs.deno_v}}
needs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
}]
},
"fetch": {
"uses": "./.github/workflows/action_fetch.yaml"
"uses": "./.github/workflows/_fetch.yaml"
},
"test": {
"uses": "./.github/workflows/action_test.yaml",
"uses": "./.github/workflows/_test.yaml",
"with": {
"deno_v": "${{needs.fetch.outputs.deno_v}}"
},
Expand All @@ -33,7 +33,7 @@
]
},
"push": {
"uses": "./.github/workflows/action_build.yaml",
"uses": "./.github/workflows/_push.yaml",
"with": {
"deno_v": "${{needs.fetch.outputs.deno_v}}"
},
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
with:
generate_release_notes: true
fetch:
uses: ./.github/workflows/action_fetch.yaml
uses: ./.github/workflows/_fetch.yaml
test:
uses: ./.github/workflows/action_test.yaml
uses: ./.github/workflows/_test.yaml
with:
deno_v: ${{needs.fetch.outputs.deno_v}}
needs:
- fetch
push:
uses: ./.github/workflows/action_build.yaml
uses: ./.github/workflows/_push.yaml
with:
deno_v: ${{needs.fetch.outputs.deno_v}}
needs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
},
"jobs": {
"fetch": {
"uses": "./.github/workflows/action_fetch.yaml"
"uses": "./.github/workflows/_fetch.yaml"
},
"test": {
"uses": "./.github/workflows/action_test.yaml",
"uses": "./.github/workflows/_test.yaml",
"with": {
"deno_v": "${{needs.fetch.outputs.deno_v}}"
},
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ on:
- '**.md'
jobs:
fetch:
uses: ./.github/workflows/action_fetch.yaml
uses: ./.github/workflows/_fetch.yaml
test:
uses: ./.github/workflows/action_test.yaml
uses: ./.github/workflows/_test.yaml
with:
deno_v: ${{needs.fetch.outputs.deno_v}}
needs:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# **Deno Docker Image**
![actions:test](https://github.com/dojyorin/deno_docker_image/actions/workflows/test.yaml/badge.svg)
![actions:release](https://github.com/dojyorin/deno_docker_image/actions/workflows/release.yaml/badge.svg)
![actions:push](https://github.com/dojyorin/deno_docker_image/actions/workflows/push.yaml/badge.svg)
![actions:cron](https://github.com/dojyorin/deno_docker_image/actions/workflows/cron.yaml/badge.svg)
![shields:license](https://img.shields.io/github/license/dojyorin/deno_docker_image)
![shields:release](https://img.shields.io/github/release/dojyorin/deno_docker_image)

Expand Down

0 comments on commit a9067b3

Please sign in to comment.