Skip to content

Commit

Permalink
Reduce nesting of tasks by one level (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell authored Sep 22, 2024
1 parent 936210b commit 0456da7
Show file tree
Hide file tree
Showing 47 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ jobs:

- name: Update version numbers in task.json
run: |
echo "`jq '.version.Major=1' extension/tasks/dependabot/dependabotV1/task.json`" > extension/tasks/dependabot/dependabotV1/task.json
echo "`jq '.version.Minor=34' extension/tasks/dependabot/dependabotV1/task.json`" > extension/tasks/dependabot/dependabotV1/task.json
echo "`jq '.version.Patch=${{ github.run_number }}' extension/tasks/dependabot/dependabotV1/task.json`" > extension/tasks/dependabot/dependabotV1/task.json
echo "`jq '.version.Major=${{ steps.gitversion.outputs.major }}' extension/tasks/dependabot/dependabotV2/task.json`" > extension/tasks/dependabot/dependabotV2/task.json
echo "`jq '.version.Minor=${{ steps.gitversion.outputs.minor }}' extension/tasks/dependabot/dependabotV2/task.json`" > extension/tasks/dependabot/dependabotV2/task.json
echo "`jq '.version.Patch=${{ github.run_number }}' extension/tasks/dependabot/dependabotV2/task.json`" > extension/tasks/dependabot/dependabotV2/task.json
echo "`jq '.version.Major=1' extension/tasks/dependabotV1/task.json`" > extension/tasks/dependabotV1/task.json
echo "`jq '.version.Minor=34' extension/tasks/dependabotV1/task.json`" > extension/tasks/dependabotV1/task.json
echo "`jq '.version.Patch=${{ github.run_number }}' extension/tasks/dependabotV1/task.json`" > extension/tasks/dependabotV1/task.json
echo "`jq '.version.Major=${{ steps.gitversion.outputs.major }}' extension/tasks/dependabotV2/task.json`" > extension/tasks/dependabotV2/task.json
echo "`jq '.version.Minor=${{ steps.gitversion.outputs.minor }}' extension/tasks/dependabotV2/task.json`" > extension/tasks/dependabotV2/task.json
echo "`jq '.version.Patch=${{ github.run_number }}' extension/tasks/dependabotV2/task.json`" > extension/tasks/dependabotV2/task.json
- name: Create Extension (dev)
run: >
Expand Down
6 changes: 3 additions & 3 deletions extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "Dependabot Azure DevOps task",
"main": "''",
"scripts": {
"postdependencies": "cp -r node_modules tasks/dependabot/dependabotV1/node_modules && cp -r node_modules tasks/dependabot/dependabotV2/node_modules",
"postdependencies": "cp -r node_modules tasks/dependabotV1/node_modules && cp -r node_modules tasks/dependabotV2/node_modules",
"build": "tsc -p .",
"start": "npm run start:V2",
"start:V1": "node tasks/dependabot/dependabotV1/index.js",
"start:V2": "node tasks/dependabot/dependabotV2/index.js",
"start:V1": "node tasks/dependabotV1/index.js",
"start:V2": "node tasks/dependabotV2/index.js",
"test": "jest",
"package": "npx tfx-cli extension create --json5"
},
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion extension/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "ms.vss-distributed-task.task",
"targets": ["ms.vss-distributed-task.tasks"],
"properties": {
"name": "tasks/dependabot"
"name": "tasks"
}
}
]
Expand Down

0 comments on commit 0456da7

Please sign in to comment.