Skip to content

Please add an easy way to rename action blocks without having to go into the code view #16391

Please add an easy way to rename action blocks without having to go into the code view

Please add an easy way to rename action blocks without having to go into the code view #16391

Workflow file for this run

name: Sync with Azure DevOps
on:
schedule:
- cron: '0 */2 * * *'
issues:
types: [opened, closed, deleted, reopened, edited, labeled, unlabeled, assigned, unassigned]
issue_comment:
types: [created]
workflow_dispatch:
inputs:
manual_trigger:
description: 'Manual Trigger'
required: false
default: 'true'
type: choice
options:
- 'true'
- 'false'
concurrency:
group: issue-${{ github.event.issue.number }}
cancel-in-progress: false
jobs:
alert:
runs-on: ubuntu-latest
environment: E2ETesting
permissions:
issues: write
pull-requests: write
id-token: write
name: Sync workflow
steps:
- uses: actions/checkout@v3
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_TESTING_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TESTING_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_TESTING_SUBSCRIPTION_ID }}
- name: 'Generate NPMRC'
shell: bash
run: |
export ADO_MANAGEMENT_TOKEN=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 | jq -r .accessToken)
echo "ADO_MANAGEMENT_TOKEN=$ADO_MANAGEMENT_TOKEN" >> $GITHUB_ENV
- uses: hartra344/GitSync@main
env:
ado_token: '${{ env.ADO_MANAGEMENT_TOKEN }}'
github_token: '${{ secrets.GITHUB_TOKEN }}'
config_file: './.github/sync_config.json'