Thanks to visit codestin.com
Credit goes to github.com

Skip to content

edlich/ActionsDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

ActionsDemo

  1. Create new GitHub: GitHubActions
  2. Create hw.py in toplevel including print("Hello SRH!")
  3. Create a directory .github/workflows/ (Slash at end)
  4. Create a file python-script.yml that includes the action:
name: Run Python Script

on:
  workflow_dispatch:
  push:

jobs:
  run-script:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v2

    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: '3.x'

    - name: Run script
      run: python hw.py
  1. Go to actions, select the action and select run

About

Demo for GitHub Actions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages