Skip to content

no way to perform apm update #46

Description

@kuisathaverat

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

  1. 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: {}
  1. 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
  1. Run the workflow one time and merge the PR created
  2. Wait for a change in the repo github/awesome-copilot#main
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions