Skip to content

Commit

Permalink
Update AzureDevOps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelhorak authored Jan 4, 2025
1 parent 5ad293a commit 6032c6a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/AzureDevOps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ jobs:
environment: ado

steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Login to Azure using federated identity
# Step 1: Login to Azure using federated identity
- name: Login to Azure
uses: azure/login@v2
with:
Expand All @@ -38,15 +34,15 @@ jobs:
allow-no-subscriptions: true
enable-debug-logs: true

# Step 3: Obtain Azure DevOps token
# Step 2: Obtain Azure DevOps token
- name: Get Azure DevOps token
id: get_ado_token
run: |
# Fetch Azure DevOps token using resource ID 499b84ac-1321-427f-aa17-267ca6975798
ado_token=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query "accessToken" --output tsv)
echo "ado_token=${ado_token}" >> $GITHUB_ENV
# Step 4: Sync GitHub issue to Azure DevOps work item
# Step 3: Sync GitHub issue to Azure DevOps work item
- name: Sync issue to Azure DevOps
uses: pavelhorak/github-actions-issue-to-work-item@main
env:
Expand Down

0 comments on commit 6032c6a

Please sign in to comment.