Skip to content

download

download #17

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: download
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
download_url:
description: 'download url'
required: true
default: ''
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
if: github.repository_owner == github.actor
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a set of commands using the runners shell
- name: download
shell: bash
env:
download_url: ${{ github.event.inputs.download_url }}
run: |
mkdir -p /opt/download
cd /opt/download
wget $download_url
# find ./ -type f -print|xargs sha256sum
- name: upload artifact
uses: actions/upload-artifact@v2
if: success()
with:
name: download
path: /opt/download