diff --git a/.github/workflows/update-by-lang.yml b/.github/workflows/update-by-lang.yml index 3cb0f17..78884ca 100644 --- a/.github/workflows/update-by-lang.yml +++ b/.github/workflows/update-by-lang.yml @@ -1,50 +1,34 @@ -name: โญ Update by language +name: Update by language on: - push: - branches: [main] + workflow_dispatch: schedule: - cron: 0/30 * * * * - workflow_dispatch: jobs: update-by-language: - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPOSITORY: ${{ github.repository }} - USERNAME: ${{ github.repository_owner }} - name: ๐ŸŒŸ Update stars and clean old runs + name: update awesome-stars runs-on: ubuntu-latest steps: - - name: ๐Ÿงน Delete old workflow runs - run: | - gh api repos/${REPOSITORY}/actions/runs -X GET --paginate -q '.workflow_runs[] | select(.status != "in_progress" and .status != "queued") | "\(.id)"' | xargs -I % gh api repos/${REPOSITORY}/actions/runs/% -X DELETE - - - name: โฌ‡ Checkout - uses: actions/checkout@v5 - - - name: ๐Ÿ”ง Set up Python - uses: actions/setup-python@v5 + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: "3.13" - - - name: ๐Ÿ”ง Install dependencies - run: pip install --upgrade pip starred - - - name: โญ Update repo category by language + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install starred + - name: Get repository name + run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV + - name: Update repo category by language + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPOSITORY: ${{ env.REPOSITORY_NAME }} + USERNAME: ${{ github.repository_owner }} run: | starred \ - --token ${GITHUB_TOKEN} \ - --username ${USERNAME} \ - --sort > by-language.md - head by-language.md - if [ $(wc -l < "by-language.md") -lt 100 ]; then - git checkout -- "by-language.md" - fi - - - name: ๐Ÿค– Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: ๐Ÿค– Update generated README/topics - branch: main - commit_user_name: awesome-stars ๐Ÿค– - commit_user_email: actions@github.com - commit_author: awesome-stars ๐Ÿค– + --username ${USERNAME} \ + --repository ${REPOSITORY} \ + --token ${GITHUB_TOKEN} \ + --sort \ + --message "docs(language): bump data" \ + --filename by-language.md diff --git a/by-language.md b/by-language.md index 620a81e..2c7e4c6 100644 --- a/by-language.md +++ b/by-language.md @@ -1245,7 +1245,6 @@ ## Nix -- [rti/nixwrap](https://github.com/rti/nixwrap) - Easy Application Sandboxing on NixOS - [PrimaMateria/nixos-hive](https://github.com/PrimaMateria/nixos-hive) - PrimaMateria's NixOS configuration - [BryceBeagle/nixos-config](https://github.com/BryceBeagle/nixos-config) - - [nix-community/flakelight](https://github.com/nix-community/flakelight) - Framework for simplifying flake setup [maintainer=@accelbread] diff --git a/by-list.md b/by-list.md index d5deddb..b43f70f 100644 --- a/by-list.md +++ b/by-list.md @@ -286,7 +286,6 @@ - [mattermost/mattermost](https://github.com/mattermost/mattermost) - Mattermost is an open source platform for secure collaboration across the entire software development lifecycle.. - [ktolonen/ultiorganizer](https://github.com/ktolonen/ultiorganizer) - Ultiorganizer is a web application for online score keeping of Ultimate events. - [thunderbird/stormbox](https://github.com/thunderbird/stormbox) - A webmail. -- [rti/nixwrap](https://github.com/rti/nixwrap) - Easy Application Sandboxing on NixOS ## knowledge - [TiddlyWiki/TiddlyWiki5](https://github.com/TiddlyWiki/TiddlyWiki5) - A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc. @@ -662,7 +661,6 @@ - [BryceBeagle/nixos-config](https://github.com/BryceBeagle/nixos-config) - - [PrimaMateria/nixos-hive](https://github.com/PrimaMateria/nixos-hive) - PrimaMateria's NixOS configuration - [utdemir/nix-tree](https://github.com/utdemir/nix-tree) - Interactively browse dependency graphs of Nix derivations. -- [rti/nixwrap](https://github.com/rti/nixwrap) - Easy Application Sandboxing on NixOS ## nixolotl - [Mic92/nix-update](https://github.com/Mic92/nix-update) - Swiss-knife for updating nix packages. diff --git a/by-topic.md b/by-topic.md index db86dc0..e45232f 100644 --- a/by-topic.md +++ b/by-topic.md @@ -2211,7 +2211,6 @@ ## linux -- [rti/nixwrap](https://github.com/rti/nixwrap) - Easy Application Sandboxing on NixOS - [nikstur/userborn](https://github.com/nikstur/userborn) - Declaratively bear (manage) Linux users and groups - [wueestry/nixos-config](https://github.com/wueestry/nixos-config) - Current nixos configuration using snowfall lib as flake structure - [future-architect/vuls](https://github.com/future-architect/vuls) - Agent-less vulnerability scanner for Linux, FreeBSD, Container, WordPress, Programming language libraries, Network devices