forked from open-component-model/ocm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cleanup to action for self hosted runner (open-component-model#760)
## Description Add action for cleanup of self-hosted runner
- Loading branch information
Showing
4 changed files
with
19 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -24,6 +24,9 @@ jobs: | |
packages: write | ||
repository-projects: read | ||
steps: | ||
- name: Self Hosted Runner Post Job Cleanup Action | ||
uses: TooMuch4U/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -63,4 +66,4 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ocm.ctf | ||
path: gen/ctf | ||
path: gen/ctf |
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
run: | | ||
cd components/ocmcli | ||
PATH=$PATH:$(go env GOPATH)/bin make ctf | ||
build-helminstaller: | ||
name: Build HelmInstaller | ||
runs-on: large_runner | ||
|
@@ -65,6 +66,7 @@ jobs: | |
run: | | ||
cd components/helminstaller | ||
PATH=$PATH:$(go env GOPATH)/bin make ctf | ||
build-helmdemo: | ||
name: Build HelmDemo | ||
runs-on: large_runner | ||
|
@@ -91,6 +93,7 @@ jobs: | |
run: | | ||
cd components/helmdemo | ||
PATH=$PATH:$(go env GOPATH)/bin make ctf | ||
build-subchartsdemo: | ||
name: Build Helm SubChartsDemo | ||
runs-on: large_runner | ||
|
@@ -117,10 +120,14 @@ jobs: | |
run: | | ||
cd components/subchartsdemo | ||
PATH=$PATH:$(go env GOPATH)/bin make ctf | ||
build-ecrplugin: | ||
name: Build ECR Plugin | ||
runs-on: large_runner | ||
steps: | ||
- name: Self Hosted Runner Post Job Cleanup Action | ||
uses: TooMuch4U/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
run: | | ||
PATH=$PATH:$(go env GOPATH)/bin make build | ||
PATH=$PATH:$(go env GOPATH)/bin make test | ||
lint: | ||
name: Lint | ||
runs-on: large_runner | ||
|
@@ -71,10 +72,14 @@ jobs: | |
- name: Lint | ||
run: | | ||
PATH=$PATH:$(go env GOPATH)/bin make check | ||
generate: | ||
name: DeepCopy verification | ||
runs-on: large_runner | ||
steps: | ||
- name: Self Hosted Runner Post Job Cleanup Action | ||
uses: TooMuch4U/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -99,3 +104,4 @@ jobs: | |
- name: Check for diff | ||
run: | | ||
git diff --exit-code --shortstat | ||
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 |
---|---|---|
|
@@ -122,6 +122,8 @@ jobs: | |
id-token: write | ||
packages: write | ||
steps: | ||
- name: Self Hosted Runner Post Job Cleanup Action | ||
uses: TooMuch4U/[email protected] | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v2 | ||
|