-
Notifications
You must be signed in to change notification settings - Fork 15
Modify workflow and main #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
884d26b
017e6be
e244252
1d19378
c5eabb8
32701da
a63cc41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,9 @@ jobs: | |
| GITHUB_TOKEN: ${{ secrets.DAGGER_HACKATHON_GITHUB_TOKEN }} | ||
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
| CURRENT_BRANCH: ${{ github.head_ref }} | ||
| CURRENT_REPO: ${{ github.repository }} | ||
| DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }} | ||
| AZURE_OPENAI_ENDPOINT: https://vdfvdf.openai.azure.com/ | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dry up |
||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
|
|
@@ -25,25 +28,24 @@ jobs: | |
| working-directory: docs/dagger/dagger-hackathon/ | ||
| run: | | ||
| cat <<EOF > .env | ||
| OPENAI_BASE_URL=https://vdfvdf.openai.azure.com/ | ||
| OPENAI_BASE_URL=${AZURE_OPENAI_ENDPOINT} | ||
| OPENAI_MODEL=gpt-4o | ||
| OPENAI_API_KEY=${OPENAI_API_KEY} | ||
| OPENAI_AZURE_VERSION=2024-12-01-preview | ||
| GITHUB_TOKEN=${GITHUB_TOKEN} | ||
| EOF | ||
|
|
||
| - name: Dagger Run Unit Tests | ||
| working-directory: docs/dagger/dagger-hackathon/ | ||
| env: | ||
| DAGGER_SECRET_GITHUB_TOKEN: ${{ secrets.DAGGER_HACKATHON_GITHUB_TOKEN }} | ||
| run: | | ||
| export AZURE_OPENAI_API_KEY="${OPENAI_API_KEY}" | ||
| export AZURE_OPENAI_ENDPOINT="https://vdfvdf.openai.azure.com/" | ||
| export GITHUB_TOKEN="${GITHUB_TOKEN}" | ||
| export DAGGER_CLOUD_TOKEN="${DAGGER_CLOUD_TOKEN}" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need this to trace |
||
| dagger call \ | ||
| --source="." \ | ||
| --github_branch="${CURRENT_BRANCH}" \ | ||
| --github_repo="codetocloudorg/platform-engineering" \ | ||
| --github_token=DAGGER_SECRET_GITHUB_TOKEN \ | ||
| --azure_api_key="OPENAI_API_KEY" \ | ||
| --azure_endpoint="https://vdfvdf.openai.azure.com/" \ | ||
| --github_repo="${CURRENT_REPO}" \ | ||
| --github_token=GITHUB_TOKEN \ | ||
| --azure_openai_api_key=AZURE_OPENAI_API_KEY \ | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. modify arg names |
||
| --azure_openai_endpoint="${AZURE_OPENAI_ENDPOINT}" \ | ||
| fix-my-tests-agent | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ async def GetPrMetadata(self) -> PrMetadataResult: | |
| "--head", f"{self.github_branch}", | ||
| "--limit", "1", | ||
| "--json", "number", | ||
| "--jq", ".[0].number", | ||
| "--jq", ".[].number", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. works better without 0 |
||
| "--repo", f"{self.github_repo}" | ||
| ]) | ||
| .stdout() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move everything to one env section