[GH-ISSUE #1796] Display the contents of the script and other logging additions #875

Open
opened 2026-03-01 21:47:05 +03:00 by kerem · 0 comments
Owner

Originally created by @andrew-pickin-epi on GitHub (May 10, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1796

Act version

0.2.45-10

Feature description

Consider the following action

name: 'Generate Tag Action'
description: "Generate an image tag using a Makefile"
outputs:
  tag:
    description: "Tag used by docker"
    value: ${{ steps.generatetag.outputs.tag }}
runs:
  using: "composite"
  steps:
    - name: "Generate Tag"
      id: generatetag
      shell: bash
      run: |
        tag=$( make tag )
        echo TAG: ${tag}
        echo "tag=${tag}" >> $GITHUB_OUTPUT

and its invocation

    - name: "Get image tag"
      id: gittag
      uses: epimorphics/github-actions/generate-tag@v12

The resulting log is:

[publish/Bulid & Publish Docker Image/Build & Upload Docker Image to ECR] ⭐ Run Main Generate Tag
[publish/Bulid & Publish Docker Image/Build & Upload Docker Image to ECR]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/gittag-composite-generatetag.sh] user= workdir=
| TAG: 1.1.3-0aca5ed
[publish/Bulid & Publish Docker Image/Build & Upload Docker Image to ECR]   ✅  Success - Main Generate Tag

Whereas in Github we get:

Get image tag
⏷ Run epimorphics/github-actions/generate-tag@v12
⏷ Run tag=$( make tag )
    tag=$( make tag )
    echo TAG: ${tag}
    echo "tag=${tag}" >> $GITHUB_OUTPUT
    shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
TAG: 1.6.1_afd4ccb_0000005

It would be nice to have logged the following:

  • The name of the top invocation name to match github.
  • The exact version of the action being invoked.
  • The contents of the contents of the script.

Additionally the *DRYRUN* label is invisible on white background terminals.

Originally created by @andrew-pickin-epi on GitHub (May 10, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1796 ### Act version 0.2.45-10 ### Feature description Consider the following action ``` name: 'Generate Tag Action' description: "Generate an image tag using a Makefile" outputs: tag: description: "Tag used by docker" value: ${{ steps.generatetag.outputs.tag }} runs: using: "composite" steps: - name: "Generate Tag" id: generatetag shell: bash run: | tag=$( make tag ) echo TAG: ${tag} echo "tag=${tag}" >> $GITHUB_OUTPUT ``` and its invocation ``` - name: "Get image tag" id: gittag uses: epimorphics/github-actions/generate-tag@v12 ``` The resulting log is: ``` [publish/Bulid & Publish Docker Image/Build & Upload Docker Image to ECR] ⭐ Run Main Generate Tag [publish/Bulid & Publish Docker Image/Build & Upload Docker Image to ECR] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/gittag-composite-generatetag.sh] user= workdir= | TAG: 1.1.3-0aca5ed [publish/Bulid & Publish Docker Image/Build & Upload Docker Image to ECR] ✅ Success - Main Generate Tag ``` Whereas in Github we get: ``` Get image tag ⏷ Run epimorphics/github-actions/generate-tag@v12 ⏷ Run tag=$( make tag ) tag=$( make tag ) echo TAG: ${tag} echo "tag=${tag}" >> $GITHUB_OUTPUT shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} TAG: 1.6.1_afd4ccb_0000005 ``` It would be nice to have logged the following: - The name of the top invocation name to match github. - The exact version of the action being invoked. - The contents of the contents of the script. Additionally the `*DRYRUN*` label is invisible on white background terminals.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#875
No description provided.