Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action on self-hosted MacOS runner fails with GITHUB_OUTPUT: unbound variable but release is created #17

Closed
avsaase opened this issue Dec 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@avsaase
Copy link

avsaase commented Dec 24, 2022

I'm running this action on a self-hosted MacOS runner and I'm getting this error when I try to make a release.

/Users/alexander.vansaase/dev/actions-runner/_work/_actions/taiki-e/create-gh-release-action/v1/main.sh: line 118: GITHUB_OUTPUT: unbound variable
Error: Command failed: bash --noprofile --norc /Users/alexander.vansaase/dev/actions-runner/_work/_actions/taiki-e/create-gh-release-action/v1/main.sh

Even though the action fails, the release is created.

Here's my release.yaml:

name: Release

permissions:
  contents: write

on:
  push:
    tags:
      - v[0-9]+.*

jobs:
  create-release:
    runs-on: [self-hosted]
    steps:
      - uses: actions/checkout@v3
      - uses: taiki-e/create-gh-release-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

  upload-assets:
    strategy:
      matrix:
        include:
          - target: aarch64-apple-darwin
            os: macos-latest
          - target: x86_64-apple-darwin
            os: macos-latest
    runs-on: [self-hosted]
    steps:
      - uses: actions/checkout@v3
      - uses: taiki-e/upload-rust-binary-action@v1
        with:
          bin: qbn
          target: ${{ matrix.target }}
          build_tool: cargo
          token: ${{ secrets.GITHUB_TOKEN }}
          zip: all
          tar: none
@taiki-e
Copy link
Owner

taiki-e commented Dec 24, 2022

Fixed in 1.6.2. Thanks for the report!

@taiki-e taiki-e added the bug Something isn't working label Dec 24, 2022
@taiki-e taiki-e changed the title Action fails with GITHUB_OUTPUT: unbound variable but release is created Action on self-hosted MacOS runner fails with GITHUB_OUTPUT: unbound variable but release is created Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants