Skip to content

Commit bce6ae4

Browse files
committed
Update summary
1 parent 1a29e60 commit bce6ae4

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/jetbrains-auto-update-template.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
if [ -f /tmp/__gh_output.txt ]
4848
then
4949
cat /tmp/__gh_output.txt >> $GITHUB_OUTPUT
50+
cat /tmp/__gh_output.txt >> $GITHUB_STEP_SUMMARY
5051
fi
5152
5253
update-jetbrains:
@@ -85,17 +86,22 @@ jobs:
8586
run: |
8687
imageRepoBase=${{ github.ref == 'refs/heads/main' && 'eu.gcr.io/gitpod-core-dev/build' || 'eu.gcr.io/gitpod-dev-artifact/build' }}
8788
echo "leeway build -Dversion=latest -DimageRepoBase=$imageRepoBase -DbuildNumber=${{ steps.ide-version.outputs.ideBuildVersion }} components/ide/jetbrains/image:${{ inputs.productId }}-latest -DjbBackendVersion=${{ steps.ide-version.outputs.ideVersion }}"
88-
- name: Get previous job's status
89-
id: lastrun
90-
uses: filiptronicek/get-last-job-status@main
91-
- name: Slack Notification
92-
if: ${{ (success() && steps.lastrun.outputs.status == 'failed') || failure() }}
93-
uses: rtCamp/action-slack-notify@v2
94-
env:
95-
SLACK_WEBHOOK: ${{ secrets.IDE_SLACK_WEBHOOK }}
96-
SLACK_COLOR: ${{ job.status }}
97-
SLACK_TITLE: ${{ inputs.productId }}
98-
SLACK_FOOTER: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Workflow logs>"
89+
echo "leeway build -Dversion=latest -DimageRepoBase=$imageRepoBase -DbuildNumber=${{ steps.ide-version.outputs.ideBuildVersion }} components/ide/jetbrains/image:${{ inputs.productId }}-latest -DjbBackendVersion=${{ steps.ide-version.outputs.ideVersion }}" >> $GITHUB_STEP_SUMMARY
90+
- name: Mock slack content
91+
run: |
92+
content=$(cat $GITHUB_STEP_SUMMARY)
93+
echo "Content from summary: $content"
94+
# - name: Get previous job's status
95+
# id: lastrun
96+
# uses: filiptronicek/get-last-job-status@main
97+
# - name: Slack Notification
98+
# if: ${{ (success() && steps.lastrun.outputs.status == 'failed') || failure() }}
99+
# uses: rtCamp/action-slack-notify@v2
100+
# env:
101+
# SLACK_WEBHOOK: ${{ secrets.IDE_SLACK_WEBHOOK }}
102+
# SLACK_COLOR: ${{ job.status }}
103+
# SLACK_TITLE: ${{ inputs.productId }}
104+
# SLACK_FOOTER: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Workflow logs>"
99105

100106
delete-runner:
101107
if: always()

0 commit comments

Comments
 (0)