mirror of
https://github.com/nushell/awesome-nu.git
synced 2024-11-20 16:37:58 +03:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
on:
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 3 * * 3' # At 03:00 on Wednesday
|
|
|
|
name: Update plugin_details.md
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Nushell
|
|
uses: hustcer/setup-nu@v3
|
|
with:
|
|
version: 0.95.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: actions/checkout@v2
|
|
- name: Update plugin list
|
|
shell: nu {0}
|
|
run: |
|
|
nu -c '
|
|
let output = "plugin_details.md";
|
|
let config = "config.yaml";
|
|
|
|
use action.nu plugin-list create-table;
|
|
|
|
open $config | create-table | to md | save $output -f;
|
|
$"\n\nlast update at `(date now | format date `%Y-%m-%d %H:%M:%S %Z`)`\n" | save --append $output;
|
|
'
|
|
|
|
- uses: EndBug/add-and-commit@v9
|
|
with:
|
|
add: plugin_details.md # Only commit+push the output file
|
|
author_name: GitHub-Action
|