tweag / run-nix-shell

GitHub action for executing scripts via nix-shell.
Apache License 2.0
3 stars 1 forks source link

Outputs are not propagated to next steps #10

Open sir4ur0n opened 5 months ago

sir4ur0n commented 5 months ago

Describe the bug Outputs are not propagated to next steps

To Reproduce

name: Whatever

on:
  workflow_dispatch:

jobs:
  whatever:
    runs-on: [self-hosted, nixos]
    steps:
      - uses: actions/checkout@v4

      - name: a
        id: a
        uses: tweag/run-nix-shell@v0
        with:
          pure: false
          run: |
            echo "foo_bar=what" >> "$GITHUB_OUTPUT"

      - name: b
        id: b
        run: |
          echo "${{ steps.a.outputs.foo_bar }}"

Expected behavior what should be displayed in the Github Action logs. If we do the same thing without tweag/run-nix-shell then it works as expected.

Environment