The GitHub action installs the APM dependencies correctly, but does not update the references to branches. This happens because it uses the command apm install and creates the lock file. After that, the branch's dependencies are fixed to a commit and will not change. The only way to update those branch references is to manually run apm update
- Create an apm.yml file
name: Test branches
version: 1.0.0
description: test the branches update
license: Apache-2.0
dependencies:
apm:
- github/awesome-copilot#main
mcp: []
scripts: {}
- Create a Github workflow to perform updates
---
name: APM Assets Update
on:
workflow_dispatch:
jobs:
apm-update:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6.0.2
- uses: microsoft/apm-action@a7806d88ce4e4fd0e86b907570fcd94ad25d0c82 # v1.7.3
with:
compile: 'false'
audit-report: 'true'
- name: Open PR if changed
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
with:
title: 'chore: update AI agent assets'
branch: apm/auto-update
- Run the workflow one time and merge the PR created
- Wait for a change in the repo github/awesome-copilot#main
- Run the workflow again
The new PR created will have only changes in the audit file, but no the new AI assets edit or created in the branch github/awesome-copilot#main
The GitHub action installs the APM dependencies correctly, but does not update the references to branches. This happens because it uses the command
apm installand creates the lock file. After that, the branch's dependencies are fixed to a commit and will not change. The only way to update those branch references is to manually runapm updateThe new PR created will have only changes in the audit file, but no the new AI assets edit or created in the branch github/awesome-copilot#main