Skip to content

Commit f64ddd8

Browse files
committed
Evaluate on comment
1 parent e15dc6d commit f64ddd8

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"version": "1.10.1"
2121
},
2222
"ghcr.io/prulloac/devcontainer-features/ollama:1": {},
23-
// az feature
23+
// az CLI is helpful for being able to login correctly with DefaultAzureCredential:
2424
"ghcr.io/devcontainers/features/azure-cli": {}
2525
},
2626
// Configure tool-specific properties.

.github/workflows/app-tests.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
name: App Tests
22

33
on:
4-
# push:
5-
# branches: [ main ]
6-
# paths-ignore:
7-
# - "**.md"
8-
# - ".azdo/**"
9-
# - ".devcontainer/**"
10-
# - ".github/**"
11-
# pull_request:
12-
# branches: [ main ]
13-
# paths-ignore:
14-
# - "**.md"
15-
# - ".azdo/**"
16-
# - ".devcontainer/**"
17-
# - ".github/**"
4+
push:
5+
branches: [ main ]
6+
paths-ignore:
7+
- "**.md"
8+
- ".azdo/**"
9+
- ".devcontainer/**"
10+
- ".github/**"
11+
pull_request:
12+
branches: [ main ]
13+
paths-ignore:
14+
- "**.md"
15+
- ".azdo/**"
16+
- ".devcontainer/**"
17+
- ".github/**"
1818
workflow_dispatch:
1919

2020
permissions:

.github/workflows/azure-dev.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ name: Deploy with azd
22

33
on:
44
workflow_dispatch:
5-
# TODO: change later
65
push:
76
branches: [ main ]
8-
pull_request:
9-
branches: [ main ]
7+
108
# GitHub Actions workflow to deploy to Azure using azd
119
# To configure required secrets for connecting to Azure, simply run `azd pipeline config`
1210

.github/workflows/evaluate.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ name: Evaluate
22

33
on:
44
workflow_dispatch:
5-
# TODO: change later
6-
push:
7-
branches: [ main ]
8-
pull_request:
9-
branches: [ main ]
5+
issue_comment:
6+
types: [created]
107

118
# Set up permissions for deploying with secretless Azure federated credentials
12-
# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
9+
# https://learn.microsoft.com/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
1310
permissions:
1411
id-token: write
1512
contents: read
1613

1714
jobs:
1815
evaluate:
16+
if: github.event_name == 'workflow_dispatch' || contains(github.event.comment.body, '#evaluate')
1917
runs-on: ubuntu-latest
2018
env:
2119
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
@@ -24,6 +22,11 @@ jobs:
2422
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
2523
AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
2624
steps:
25+
- name: Check for evaluate hash tag
26+
if: contains(github.event.comment.body, '#evaluate')
27+
run: |
28+
echo "Comment contains #evaluate hashtag"
29+
2730
- uses: actions/checkout@v4
2831
- name: Install PostgreSQL development libraries
2932
run: |

0 commit comments

Comments
 (0)