Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chipmonkster committed Nov 24, 2024
1 parent 234ab6b commit 2f87cfe
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions azure-pipelines-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ stages:
command: apply
environmentServiceNameAzureRM: FDF-PVARKI-SOLUTION-Dev

<<<<<<< HEAD
# - task: Bash@3
# displayName: Create github issue
# inputs:
Expand All @@ -101,7 +100,7 @@ stages:
# script: |
# echo "Creating a GitHub issue..."
# curl -X POST \
# -H "Authorization: Bearer $(#GITHUB_TOKEN)" \
# # -H "Authorization: Bearer $(GitHubToken)" \
# -H "Accept: application/vnd.github.v3+json" \
# https://api.github.com/repos/pvarki/terraform-miniwerk-deployment/issues \
# -d '{
Expand All @@ -112,32 +111,8 @@ stages:
# displayName: 'Create GitHub Issue'
# workingDirectory: $(System.DefaultWorkingDirectory)
# env:
# GITHUB_TOKEN: $(serviceConnection.github_connector.auth.token)
# DEPLOYMENT_NAME: ${{ parameters.DEPLOYMENT_NAME }}
# WORKSPACE_NAME: ${{ parameters.WORKSPACE_NAME }}
=======
- task: Bash@3
displayName: Create github issue
inputs:
targetType: 'inline'
connection: github_connector
script: |
echo "Creating a GitHub issue..."
curl -X POST \
-H "Authorization: Bearer $(GitHubToken)" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/pvarki/terraform-miniwerk-deployment/issues \
-d '{
"title": "Automated Issue: Created ${{ parameters.DEPLOYMENT_NAME }} with workspace ${{ parameters.WORKSPACE_NAME }}",
"body": "This issue was created by an Azure DevOps pipeline using the GitHub service connection.",
"labels": ["automation","instance"]
}'
displayName: 'Create GitHub Issue'
workingDirectory: $(System.DefaultWorkingDirectory)
env:
GitHubToken: $(serviceConnection.github_connector.auth.token)
>>>>>>> azurepipelines

# GitHubToken: $(serviceConnection.github_connector.auth.token)

- stage: destroy_resources
displayName: Destroy miniwerk resources
jobs:
Expand Down

0 comments on commit 2f87cfe

Please sign in to comment.