Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winget: auto-update license/copyright urls #562

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

ldennington
Copy link
Collaborator

One of our winget manifests currently has hardcoded, outdated values for its LicenseUrl and CopyrightUrl fields. This is because the winget-create tool that we use to automatically generate and publish our manifests cannot change these fields.

In light of this, instead of creating and submitting manifests with a single command, update the workflow to do the following:

  1. Create the manifests.
  2. Update the LicenseUrl and CopyrightUrl fields with the correct version.
  3. Submit the manifests.

This change also adds the workflow_dispatch trigger to the release-winget workflow for easier testing in the future.

@ldennington ldennington self-assigned this Feb 2, 2023
One of our winget manifests currently has hardcoded, outdated values for
its LicenseUrl and CopyrightUrl fields. This is because the winget-create
tool that we use to automatically generate and publish our manifests
cannot change these fields.

In light of this, instead of creating and submitting manifests with a
single command, update the workflow to do the following:

1. Create the manifests.
2. Update the LicenseUrl and CopyrightUrl fields with the correct version.
3. Submit the manifests.

This change also adds the workflow_dispatch trigger to the release-winget
workflow for easier testing in the future.

Signed-off-by: Lessley Dennington <ledennin@microsoft.com>
@ldennington
Copy link
Collaborator Author

Changes since v1:

  • Force-pushed an update to fix whitespace errors.

Copy link
Collaborator

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

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

Looking good. 🤞🏻 that it works on the first try. Otherwise, we can do fixups on top.

.github/workflows/release-winget.yml Show resolved Hide resolved
Comment on lines +33 to +34
$shortenedVersion = $version -replace ".{4}$"
$manifestPath = dir -Path ./manifests -Filter Microsoft.Git.locale.en-US.yaml -Recurse | %{$_.FullName}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is some fun script magic. It looks sensible, but we will only be sure once we run it for real.

Copy link
Collaborator Author

@ldennington ldennington Feb 2, 2023

Choose a reason for hiding this comment

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

Welp. I did run it for real yesterday lol. I tried to write to the test repo, but the config failed and submitted a PR to the real repo instead, which I closed immediately. You can check it out here though:

https://github.com/microsoft/winget-pkgs/pull/95353/files

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, I see that it wrote https://github.com/microsoft/git/blob/vfs-2.39.10/COPYING (note .10 instead of .1).

Copy link
Collaborator

Choose a reason for hiding this comment

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

or, perhaps you had created a v2.39.10.vfs.0.5 tag, based on the rest of the context. Carry on.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that was one of the experimental tags I created for testing!

@ldennington ldennington merged commit 01f2b6e into microsoft:vfs-2.39.1 Feb 2, 2023
derrickstolee pushed a commit that referenced this pull request Feb 27, 2023
One of our winget manifests currently has hardcoded, outdated values for
its LicenseUrl and CopyrightUrl fields. This is because the
winget-create tool that we use to automatically generate and publish our
manifests cannot change these fields.

In light of this, instead of creating and submitting manifests with a
single command, update the workflow to do the following:

1. Create the manifests.
2. Update the LicenseUrl and CopyrightUrl fields with the correct
version.
3. Submit the manifests.

This change also adds the workflow_dispatch trigger to the
release-winget workflow for easier testing in the future.
derrickstolee pushed a commit that referenced this pull request Mar 2, 2023
One of our winget manifests currently has hardcoded, outdated values for
its LicenseUrl and CopyrightUrl fields. This is because the
winget-create tool that we use to automatically generate and publish our
manifests cannot change these fields.

In light of this, instead of creating and submitting manifests with a
single command, update the workflow to do the following:

1. Create the manifests.
2. Update the LicenseUrl and CopyrightUrl fields with the correct
version.
3. Submit the manifests.

This change also adds the workflow_dispatch trigger to the
release-winget workflow for easier testing in the future.
derrickstolee pushed a commit that referenced this pull request Mar 8, 2023
One of our winget manifests currently has hardcoded, outdated values for
its LicenseUrl and CopyrightUrl fields. This is because the
winget-create tool that we use to automatically generate and publish our
manifests cannot change these fields.

In light of this, instead of creating and submitting manifests with a
single command, update the workflow to do the following:

1. Create the manifests.
2. Update the LicenseUrl and CopyrightUrl fields with the correct
version.
3. Submit the manifests.

This change also adds the workflow_dispatch trigger to the
release-winget workflow for easier testing in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants