generated from AndreasAugustin/template
-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gh-action): 👷 (#388) use workflow calls instead of tag trigger
- Loading branch information
1 parent
f362753
commit 7466fcb
Showing
10 changed files
with
105 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
# manual trigger | ||
branches: | ||
- "!main" | ||
pull_request: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: markdownlint | ||
run: make markdownlint | ||
- name: prune | ||
run: make prune | ||
- uses: actions/checkout@v3 | ||
- name: markdownlint | ||
run: make markdownlint | ||
- name: prune | ||
run: make prune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
call_shellcheck: | ||
uses: ./.github/workflows/shellcheck.yml | ||
call_lint: | ||
uses: ./.github/workflows/lint.yml | ||
call_test_all: | ||
uses: ./.github/workflows/test_all.yml | ||
call_release_please: | ||
needs: | ||
- call_shellcheck | ||
- call_lint | ||
- call_test_all | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
uses: ./.github/workflows/release_please.yml | ||
call_push_docker: | ||
if: ${{ needs.call_release_please.outputs.release_created }} | ||
needs: | ||
- call_release_please | ||
permissions: | ||
contents: read | ||
packages: write | ||
uses: ./.github/workflows/push_docker.yml | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: test-all | ||
|
||
on: | ||
push: | ||
branches: | ||
- "!main" | ||
# pull_request: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call_test_hooks: | ||
uses: ./.github/workflow/test_hooks.yml | ||
call_test_ssh_gitlab: | ||
uses: ./.github/workflows/test_ssh_gitlab.yml | ||
call_test_ssh: | ||
uses: ./.github/workflows/test_ssh.yml | ||
call_test: | ||
uses: ./.github/workflows/test.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters