diff --git a/.github/workflows/scheduler.yml b/.github/workflows/scheduler.yml index dd22f1c..dec23af 100644 --- a/.github/workflows/scheduler.yml +++ b/.github/workflows/scheduler.yml @@ -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 @@ -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]