Skip to content

fix: update scripts/tag.js to use GITHUB_OUTPUT - #297

Open
Arya-AV wants to merge 2 commits into
accordproject:mainfrom
Arya-AV:fix/deprecate-set-output-scripts-tag
Open

Arya-AV wants to merge 2 commits into
accordproject:mainfrom
Arya-AV:fix/deprecate-set-output-scripts-tag

Conversation

@Arya-AV

@Arya-AV Arya-AV commented Oct 26, 2026 •

Copy link
Copy Markdown

Closes #288

Changes

  • Replaced deprecated ::set-output workflow syntax in scripts/tag.js with direct append writing to $GITHUB_OUTPUT.
  • Maintained console fallback behavior when executing outside GitHub Actions (e.g., local runs).
  • Ported the implementation established in ci: harden npm release workflow concerto#1324.

Flags

  • None

Screenshots or Video

  • N/A (utility script change verified via local node scripts/tag.js)

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from Arya-AV:fix/deprecate-set-output-scripts-tag

Signed-off-by: Arya-AV <aryavats1109@gmail.com>
@mira-accord-project

Copy link
Copy Markdown

Welcome to Accord Project, and thank you for the PR, @Arya-AV. The old ::set-output workflow command is deprecated by GitHub, so moving scripts/tag.js to GITHUB_OUTPUT is a worthwhile fix. Because it touches the release script, a maintainer will want to read it with care. We aim to give you feedback within a few working days.

Drafted by an Accord Project agent, reviewed by a maintainer.

@mira-accord-project mira-accord-project Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this fix, Arya-AV, and for linking the issue. Moving scripts/tag.js off the deprecated ::set-output command is the right change. It writes tag=--tag=<tag> to GITHUB_OUTPUT, so steps.tag.outputs.tag in publish.yml gets the same value as before. The local fallback prints --tag=<tag>, which is handy for trying it by hand. I found nothing blocking. There is one small style nit below. Once it is tidied and a maintainer has approved, this looks ready to merge.

Nothing blocking; some suggestions below. Findings: 1 nit.


Automated review by Mira, an Accord Project agent, at 6850c44. Findings are labelled blocking, should-fix or nit; a maintainer makes the final call.

Comment thread scripts/tag.js Outdated

'use strict';

const fs=require('fs');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit · conventions

const fs=require('fs'); is missing spaces around =, unlike the neighbouring const semver = require('semver');. The blank line after 'use strict'; was also removed. Please write const fs = require('fs'); and put the blank line back, so the file keeps a consistent style.

Signed-off-by: Arya-AV <aryavats1109@gmail.com>
@Arya-AV
Arya-AV force-pushed the fix/deprecate-set-output-scripts-tag branch from 1ae9431 to 3235317 Compare November 4, 2026 16:08
@Arya-AV

Arya-AV commented Nov 4, 2026

Copy link
Copy Markdown
Author

Hi maintainers,

I've addressed the formatting feedback and added the required DCO sign-off. The DCO check is now passing.
The remaining workflows are awaiting approval. Could you please review the PR when convenient?

@mira-accord-project mira-accord-project Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Arya-AV, for moving scripts/tag.js off the deprecated ::set-output command, and for tidying the const fs = require('fs'); spacing. I checked the change against the Publish workflow. The tag step has id: tag, and the publish step reads steps.tag.outputs.tag as --tag=latest or --tag=unstable. Writing tag=--tag=<tag> to GITHUB_OUTPUT produces exactly that value. Printing --tag=<tag> when GITHUB_OUTPUT is unset is a sensible local fallback. I have no further findings. To merge, the main CI workflows need a maintainer to approve their first run, and a maintainer needs to review and approve. The earlier thread on the spacing is now fixed and can be resolved.

No problems found.


Automated review by Mira, an Accord Project agent, at 3235317. Findings are labelled blocking, should-fix or nit; a maintainer makes the final call.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release workflow: scripts/tag.js uses the deprecated ::set-output command

1 participant