-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36213c7
commit 777540e
Showing
48 changed files
with
797 additions
and
359 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Generate CICD Zip | ||
on: | ||
pull_request: | ||
paths: | ||
- 'template/{{.input_root_dir}}/.github/workflows/{{.input_project_name}}**' | ||
- 'template/{{.input_root_dir}}/.azure/devops-pipelines/{{.input_project_name}}**' | ||
|
||
defaults: | ||
run: | ||
working-directory: template/{{.input_root_dir}} | ||
|
||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh pr checkout ${{ github.event.pull_request.number }} | ||
- name: Generate CICD Zip | ||
run: | | ||
cp --parents .github/workflows/\{\{.input_project_name\}\}-* cicd/template | ||
cp --parents .azure/devops-pipelines/\{\{.input_project_name\}\}-* cicd/template | ||
tar -czvf cicd.tar.gz cicd | ||
- name: Add Zip to Pull Request | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config --global user.name "GitHub Actions Bot" | ||
git config --global user.email "[email protected]" | ||
git add cicd.tar.gz | ||
git commit -m "Add CICD Zip to Pull Request" | ||
git push |
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 |
---|---|---|
@@ -1,9 +1,2 @@ | ||
# Validate workspace hostname | ||
{{ define `validation` }} | ||
|
||
- Validate feature store and recipes | ||
{{- if and (eq .input_include_feature_store `yes`) (eq .input_include_mlflow_recipes `yes`) -}} | ||
{{ fail `Feature Store cannot be used with MLflow recipes. Please only use one of the two or neither.` }} | ||
{{- end -}} | ||
|
||
{{- end -}} |
Oops, something went wrong.