Run GitHub Workflows Locally

$ curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
$ mkdir -p test/.github/workflows
$ cd test/.github/workflows
$ >test.yml
$ cd ../..
name: Test pavelsaman/file-checksums actionon:
workflow_dispatch:
jobs:
file-checksums:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Get file checksums
id: checksums
uses: pavelsaman/file-checksums@v1.0.0
with:
file-path: .github/workflows/test.yml
- name: Display checksums
run: |
echo ${{ steps.checksums.outputs.sha1 }}
$ act workflow_dispatch -l
Stage Job ID Job name Workflow name Workflow file Events
0 file-checksums file-checksums Test pavelsaman/file-checksums action test.yml workflow_dispatch
$ act -j file-checksums

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store