Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2022
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. on:
  2. workflow_dispatch:
  3.  
  4. name: Scrape File
  5. jobs:
  6. build:
  7. name: Build
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. name: Check out current commit
  12.  
  13. - name: Url
  14. run: |
  15. URL=$(node ./action.js)
  16. echo "URL=$URL" >> $GITHUB_ENV
  17.  
  18. - uses: suisei-cn/actions-download-file@v1
  19. id: downloadfile
  20. name: Download the file
  21. with:
  22. url: ${{ env.URL }}
  23. target: assets/
  24.  
  25. - name: Commit files
  26. run: |
  27. git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
  28. git config --local user.name "github-actions[bot]"
  29. git add .
  30. git commit -m "Add changes" -a
  31.  
  32. - name: Push changes
  33. uses: ad-m/github-push-action@master
  34. with:
  35. github_token: ${{ secrets.GITHUB_TOKEN }}
  36. branch: ${{ github.ref }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement