Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on:
- workflow_dispatch:
- name: Scrape File
- jobs:
- build:
- name: Build
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- name: Check out current commit
- - name: Url
- run: |
- URL=$(node ./action.js)
- echo "URL=$URL" >> $GITHUB_ENV
- - uses: suisei-cn/actions-download-file@v1
- id: downloadfile
- name: Download the file
- with:
- url: ${{ env.URL }}
- target: assets/
- - name: Commit files
- run: |
- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
- git config --local user.name "github-actions[bot]"
- git add .
- git commit -m "Add changes" -a
- - name: Push changes
- uses: ad-m/github-push-action@master
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- branch: ${{ github.ref }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement