-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 857 Bytes
/
fetch.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
name: Fetch
permissions:
contents: write
on:
workflow_dispatch:
jobs:
sitemaps:
runs-on: ubuntu-20.04
name: Fetch
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch
run: ./stars.sh
- name: Generate Tag
id: tag
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Create Release
run: |
gh release create \
--repo "$GITHUB_REPOSITORY" \
--title "${{ steps.tag.outputs.date }}" \
--notes "Action URL: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \
"${{ steps.tag.outputs.date }}"
- name: Upload Artifacts
run: |
gh release upload \
--repo "$GITHUB_REPOSITORY" \
"${{ steps.tag.outputs.date }}" \
"stars.csv"