Skip to content

Commit

Permalink
Update manual.yml
Browse files Browse the repository at this point in the history
Fix syntax in GITHUB_OUTPUT lines.  Remove MESSAGE.  It can be multi-line and will break 'Notify Slack'.
  • Loading branch information
svogt0511 committed Dec 7, 2022
1 parent 0f9ef69 commit ac0f0d3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "name=dir::$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: cypress-cache
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "name=dir::$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: cypress-cache
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "name=dir::$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: cypress-cache
Expand Down Expand Up @@ -177,10 +177,10 @@ jobs:
- name: Extract variables
shell: bash
run: |
echo "name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_OUTPUT
echo "name=GIT_SHA::$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
echo "name=GIT_SHA_SHORT::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "name=MESSAGE::$(git log --format='%f %b' -n 1 ${{ github.event.after }})" >> $GITHUB_OUTPUT
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_OUTPUT
echo "GIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
# echo "MESSAGE=$(git log --format='%f %b' -n 1 ${{ github.event.after }})" >> $GITHUB_OUTPUT
id: extract_variables

- name: Vercel deploy
Expand All @@ -200,8 +200,8 @@ jobs:
text: 'A development branch [${{steps.extract_variables.outputs.BRANCH}}] of Fabrica has been deployed to vercel'
failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) build failed'
fields: |
[{ "title": "Commit message", "value": "${{ steps.extract_variables.outputs.MESSAGE }}" },
{ "title": "Committed by", "value": "<https://github.com/${{ github.repository }}/commits?author=${{ github.actor }}|${{ github.actor }}>", "short": true },
# [{ "title": "Commit message", "value": "${{ steps.extract_variables.outputs.MESSAGE }}" },
[{ "title": "Committed by", "value": "<https://github.com/${{ github.repository }}/commits?author=${{ github.actor }}|${{ github.actor }}>", "short": true },
{ "title": "Commit SHA", "value": "<https://github.com/${{ github.repository }}/commit/${{ steps.extract_variables.outputs.GIT_SHA }}|${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}>", "short": true },
{ "title": "Repository", "value": "<https://github.com/${{ github.repository }}|${{ github.repository }}>", "short": true },
{ "title": "Branch", "value": "<https://github.com/${{ github.repository }}/tree/${{ steps.extract_variables.outputs.BRANCH }}|${{ steps.extract_variables.outputs.BRANCH }}>", "short": true }]

0 comments on commit ac0f0d3

Please sign in to comment.