diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 1fef2db..7216981 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -25,12 +25,11 @@ jobs: - name: Compile project run: | make + # commands for compiling your project - - name: Get short SHA and repository name + - name: Get short SHA id: slug - run: | - echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - echo "::set-output name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")" + run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT - name: Upload artifacts if: ${{ success() }} @@ -49,11 +48,9 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Get short SHA and repository name + - name: Get short SHA id: slug - run: | - echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - echo "::set-output name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")" + run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT - name: Download artifact uses: actions/download-artifact@v3