-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 909 Bytes
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: '🌟 update'
on:
schedule:
- cron: '30 0 * * *'
workflow_dispatch:
permissions:
contents: write
env:
MESSAGE: '🌟 update'
jobs:
README:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install Package
run: 'npm install'
- name: Get repository name
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Update Repo
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
USERNAME: ${{ github.repository_owner }}
REPOSITORY: ${{ env.REPOSITORY_NAME }}
run: |
npx stargazed \
--username "${USERNAME}" \
--token "${TOKEN}" \
--repository "${REPOSITORY}" \
--message "${MESSAGE}" \
--sort