You can use nektos/act
to test this action locally. Follow these steps to test your changes:
- Install
nektos/act
mkdir -p .github/workflows
cp action.yml .github/workflows/built-action.yaml
- Open
.github/workflows/built-action.yaml
- Delete lines
name: "Deploy with Bacon"
up tosteps:
- Prepend the following lines
name: Bacon Deploy Action (from source)
on:
push:
jobs:
built-action:
runs-on: ubuntu-latest
- Fix indentation
- Confirm that your file looks like this
name: Bacon Deploy Action (from source)
on:
push:
jobs:
built-action:
runs-on: ubuntu-latest
steps:
- name: Download Bacon
id: download-bacon
shell: bash
# etc...