Skip to content

Commit

Permalink
👷 split workflow jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Sep 21, 2023
1 parent 794f063 commit 93dff05
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ on:
branches: [master]

jobs:
update-sponsors:
generate-sponsors:
runs-on: ubuntu-latest
name: Generate sponsors
environment: afdian

steps:
- uses: actions/checkout@v4

Expand All @@ -27,11 +29,30 @@ jobs:
SPONSORKIT_AFDIAN_TOKEN: ${{ secrets.AFDIAN_TOKEN }}
SPONSORKIT_AFDIAN_EXECHANGERATE: 1

- name: Upload generated files
uses: actions/upload-artifact@v3
with:
name: generated
path: |
${{ github.workspace }}/sponsors.*
update-sponsors:
runs-on: ubuntu-latest
name: Update sponsors
needs: generate-sponsors

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: sponsors-assets

- name: Download results
uses: actions/download-artifact@v3
with:
name: generated
path: ${{ github.workspace }}

- name: Push generated files
run: |
git config user.name github-actions[bot]
Expand Down

0 comments on commit 93dff05

Please sign in to comment.