Skip to content

Commit

Permalink
chore: Printing some github context values
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Sep 1, 2023
1 parent ba86598 commit 79f7cfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/main.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,11 @@ jobs:
needs: [ build, test ]
with:
config: '{
"app-name": "helloworld"
"win": "${{ needs.build.outputs.win-artefact-path }}",
"lin": "${{ needs.build.outputs.lin-artefact-path }}",
"osx": "${{ needs.build.outputs.osx-artefact-path }}"
}'

strategy:
fail-fast: true

#{
# "include":[
# {
# "project":"foo",
# "config":"Debug"
# },
# {
# "project":"bar",
# "config":"Release"
# }
# ]
#}
12 changes: 9 additions & 3 deletions .github/workflows/release.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ jobs:
- name: Build env from inputs.config
run: |
echo "tag=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
echo "app-name=${{ fromJSON(inputs.config).app-name }}" >> "$GITHUB_ENV"
echo "win=${{ fromJSON(inputs.config).win }}" >> "$GITHUB_ENV"
echo "lin=${{ fromJSON(inputs.config).lin }}" >> "$GITHUB_ENV"
echo "osx=${{ fromJSON(inputs.config).osx }}" >> "$GITHUB_ENV"
- name: Print some values
run: |
echo Config: ${{ inputs.config }}
echo GitHub Ref: ${{ github.ref }}
echo GitHub Ref Name: ${{ github.ref_name }}
echo GitHub Ref Type: ${{ github.ref_type }}
echo GitHub Event Name: ${{ github.event_name }}
echo GitHub Event Path: ${{ github.event_path }}
echo Tag: ${{ env.tag }}
echo Win: ${{ env.win }}
echo Lin: ${{ env.lin }}
echo OSX: ${{ env.osx }}
echo Win Bin: ${{ env.win }}/${{ env.app-name }}-${{ env.tag }}
echo Lin Bin: ${{ env.lin }}
echo OSX Bin: ${{ env.osx }}

0 comments on commit 79f7cfd

Please sign in to comment.