diff --git a/.github/workflows/update-by-lang.yml b/.github/workflows/update-by-lang.yml index 78884ca..3cb0f17 100644 --- a/.github/workflows/update-by-lang.yml +++ b/.github/workflows/update-by-lang.yml @@ -1,34 +1,50 @@ -name: Update by language +name: โญ Update by language on: - workflow_dispatch: + push: + branches: [main] schedule: - cron: 0/30 * * * * + workflow_dispatch: jobs: update-by-language: - name: update awesome-stars + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPOSITORY: ${{ github.repository }} + USERNAME: ${{ github.repository_owner }} + name: ๐ŸŒŸ Update stars and clean old runs runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - name: Install dependencies + - name: ๐Ÿงน Delete old workflow runs 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 }} + 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 + with: + python-version: "3.13" + + - name: ๐Ÿ”ง Install dependencies + run: pip install --upgrade pip starred + + - name: โญ Update repo category by language run: | starred \ - --username ${USERNAME} \ - --repository ${REPOSITORY} \ - --token ${GITHUB_TOKEN} \ - --sort \ - --message "docs(language): bump data" \ - --filename by-language.md + --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 ๐Ÿค– diff --git a/by-language.md b/by-language.md index 2c7e4c6..620a81e 100644 --- a/by-language.md +++ b/by-language.md @@ -1245,6 +1245,7 @@ ## 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 b43f70f..d5deddb 100644 --- a/by-list.md +++ b/by-list.md @@ -286,6 +286,7 @@ - [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. @@ -661,6 +662,7 @@ - [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 e45232f..db86dc0 100644 --- a/by-topic.md +++ b/by-topic.md @@ -2211,6 +2211,7 @@ ## 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