Skip to content

Commit

Permalink
Github Actions - Link Artifacts in PR comments; modify artifact-name
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Feb 26, 2024
1 parent fe9a97e commit c7d5ef5
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,6 @@ jobs:
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
continue-on-error: true

- name: set artifact name
id: set_artifactname
run: |
if [[ "${{ github.REPOSITORY }}" == "emuflight/EmuFlight" ]] ; then
ARTIFACT_NAME="EmuFlight-${{ env.VERSION }}-${{ github.run_number }}"
else
ARTIFACT_NAME="EmuFlight-${{ env.VERSION }}-${{ github.ACTOR }}-${{ github.run_number }}"
fi
echo "${ARTIFACT_NAME}"
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
- name: set outputs
id: ids
run: |
Expand Down Expand Up @@ -125,6 +114,13 @@ jobs:
echo "outputs.version: ${{ steps.ids.outputs.version }}"
continue-on-error: true

- name: set artifact name
id: set_artifactname
run: |
ARTIFACT_NAME="EmuFlight-${{ env.VERSION }}-${{ github.run_number }}-${{ env.SHORT_SHA }}"
echo "${ARTIFACT_NAME}"
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
# Build HEX
- name: Compile Code
run: |
Expand Down

0 comments on commit c7d5ef5

Please sign in to comment.