From e83bb785a0ee62d99793c9d5e5c671c52d976274 Mon Sep 17 00:00:00 2001 From: UnownPlain <38232575+UnownPlain@users.noreply.github.com> Date: Tue, 11 Feb 2025 02:29:02 -0500 Subject: [PATCH] feat: automatically sync winget fork (#313) Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal9@users.noreply.github.com> --- .github/pull-app-logo.svg | 1 - README.md | 5 +---- action.yml | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 .github/pull-app-logo.svg diff --git a/.github/pull-app-logo.svg b/.github/pull-app-logo.svg deleted file mode 100644 index d0212d5..0000000 --- a/.github/pull-app-logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/README.md b/README.md index c25f60c..53b669b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![GitHub release (latest by date)][github-release-badge] ![GitHub Repo stars][github-repo-stars-badge] ![GitHub][github-license-badge] -[![Badge](https://img.shields.io/badge/docs.bittu.eu.org%2Fdocs%2Fwinget--releaser--playground-abcdef?style=flat&logo=windowsterminal&label=Playground%20(dry-run))][playground-link] +[![Badge]()][playground-link] Publish new releases of your application to the Windows Package Manager easily. @@ -26,8 +26,6 @@ expediting the amount of time it takes for a submission to be reviewed. 2. Fork [microsoft/winget-pkgs][winget-pkgs-repo] under the same account/organization as the project's repository. If you are forking [winget-pkgs][winget-pkgs-repo] on a different account (e.g. bot/personal account), you can use the `fork-user` input to specify the username of the account where the fork is present. - - Ensure that the fork is up-to-date with the upstream. You can use **[ Pull App][pull-app-auto-update-forks]** which keeps your fork up-to-date via automated pull requests. - 3. Add the action to your workflow file (e.g. `.github/workflows/.yml`). > [!IMPORTANT] @@ -261,5 +259,4 @@ Contributions of any kind welcome! [winget-pkgs-repo]: https://github.com/microsoft/winget-pkgs [komac-repo]: https://github.com/russellbanks/komac [russellbanks-github-profile]: https://github.com/russellbanks -[pull-app-auto-update-forks]: https://github.com/wei/pull [gh-encrypted-secrets]: https://docs.github.com/en/actions/security-guides/encrypted-secrets#using-encrypted-secrets-in-a-workflow diff --git a/action.yml b/action.yml index a6de3aa..4a0aeb1 100644 --- a/action.yml +++ b/action.yml @@ -74,6 +74,11 @@ runs: GITHUB_TOKEN: ${{ github.token }} id: version-and-urls shell: pwsh + - run: komac sync-fork + env: + KOMAC_FORK_OWNER: ${{ inputs.fork-user }} + GITHUB_TOKEN: ${{ inputs.token }} + shell: pwsh - run: komac update '${{ inputs.identifier }}' --version '${{ steps.version-and-urls.outputs.version }}' --submit --urls ${{ steps.version-and-urls.outputs.urls }} env: KOMAC_FORK_OWNER: ${{ inputs.fork-user }}