Skip to content

Create GHA extract shell scripts action #11

Create GHA extract shell scripts action

Create GHA extract shell scripts action #11

---
name: Integration Tests
on:
pull_request:
paths:
- "action.yaml"
- "gha_extract_shell_scripts.py"
- ".github/workflows/integration-tests.yaml"
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: ./
id: gha-extract-shell-scripts
- name: Test extracted
run: |
output="$(cat "workflow_scripts/${{ env.workflow_file }}/job=Test/step=Test_extracted.sh")"
[[ "${output}" == "${expected}" ]] || exit 1
env:
expected: |
#!/usr/bin/bash
set -e
# ---
output="$(cat "workflow_scripts/:env.workflow_file:/job=Test/step=Test_extracted.sh")"
[[ "${output}" == "${expected}" ]] || exit 1
workflow_file: integration-tests.yaml