From 3e79214e37326397edc5adf9f8f63795c2648bcc Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 28 Jan 2022 13:47:01 +0100 Subject: [PATCH] workflows/sync_release-manifest: support backfills Co-authored-by: blam Signed-off-by: Patrik Oldsberg --- .github/workflows/sync_release-manifest.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync_release-manifest.yml b/.github/workflows/sync_release-manifest.yml index e8a50904d0..730ba3c754 100644 --- a/.github/workflows/sync_release-manifest.yml +++ b/.github/workflows/sync_release-manifest.yml @@ -14,7 +14,8 @@ jobs: with: ref: ${{ github.event.inputs.version }} - name: Install dependencies - run: yarn install + # Just the deps for the assemble manifest script + run: npm install --global semver@7.3.5 fs-extra@10.0.0 @manypkg/get-packages@1.1.1 - name: Checkout versions uses: actions/checkout@v2 with: @@ -26,7 +27,10 @@ jobs: git config --global user.email noreply@backstage.io git config --global user.name 'Github versions workflow' - name: Create release + # This grabs the scripts from master in order to support backfills run: | + mkdir -p scripts + wget -O scripts/assemble-manifest.js https://raw.githubusercontent.com/backstage/backstage/master/scripts/assemble-manifest.js node scripts/assemble-manifest.js ${{ github.event.inputs.version }} cd versions git add .