Skip to content

Run Python Script

Run Python Script #3

Workflow file for this run

name: Run Python Script
on:
workflow_dispatch:
inputs:
file_url:
description: 'The link to the file'
required: true
type: string
jobs:
execute-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download file
run: |
wget -O user_file ${ { github.event.inputs.file_url } }
- name: Make script executable
run: chmod +x run_script.sh
- name: Run the shell script
run: ./run_script.sh
- name: Create release
id: create_release
uses: actions/create-release@v1
with:
tag_name: 'v1.0.${{ github.run_number }}'
release_name: 'File Release ${{ github.run_number }}'
draft: false
prerelease: false
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload file to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./user_file
asset_name: user_file
asset_content_type: application/octet-stream