Skip to content

Create GHA extract shell scripts action #10

Create GHA extract shell scripts action

Create GHA extract shell scripts action #10

---
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: |
find . # Debug working directory content
output="$(cat "workflow_scripts/integration-tests.yaml/job=${{ github.job }}/step=Test_extracted.sh")"
[[ "${output}" == "${expected}" ]] || exit 1
env:
expected: |
#!/usr/bin/bash
set -e
# ---
find . # Debug working directory content
output="$(cat "workflow_scripts/integration-tests.yaml/job=:github.job:/step=Test_extracted.sh")"
[[ "${output}" == "${expected}" ]] || exit 1