Skip to content

Commit 2a52ca3

Browse files
committed
Merge branch 'origin/develop' into 'fb-hackathon-assistant'
2 parents 91f90f0 + c0f5e26 commit 2a52ca3

File tree

5 files changed

+32
-19
lines changed

5 files changed

+32
-19
lines changed

.github/workflows/bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if: always()
4646
run: cat ${{ env.REPORT_PATH }}
4747

48-
- uses: actions/upload-artifact@v3
48+
- uses: actions/upload-artifact@v4
4949
if: always()
5050
with:
5151
name: Security check results

.github/workflows/build_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
180180
- name: Upload to artifact
181181
if: always()
182-
uses: actions/upload-artifact@v3
182+
uses: actions/upload-artifact@v4
183183
with:
184184
name: Dist
185185
path: dist/

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
uses: actions/[email protected]
2727

2828
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v2
29+
uses: github/codeql-action/init@v3
3030
with:
3131
languages: ${{ matrix.language }}
3232
config-file: ./.github/codeql/codeql-config.yaml
3333

3434
- name: Perform CodeQL Analysis
35-
uses: github/codeql-action/analyze@v2
35+
uses: github/codeql-action/analyze@v3
3636
with:
3737
category: "/language:${{matrix.language}}"

.github/workflows/docker-command.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,27 +67,40 @@ jobs:
6767
runs-on: ubuntu-latest
6868
timeout-minutes: 3
6969
steps:
70-
- name: Add reaction to command comment on success
71-
uses: peter-evans/create-or-update-comment@v3
72-
if: needs.build-docker.result != 'failure'
73-
with:
74-
token: ${{ secrets.GIT_PAT }}
75-
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
76-
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
77-
body: |
78-
> Docker image was pushed with the tag `${{ needs.build-docker.outputs.build_version }}`
79-
reactions: "+1"
70+
- name: Details
71+
id: details
72+
shell: bash
73+
run: |
74+
set -xeuo pipefail
75+
76+
case "${{ needs.build-docker.result }}" in
77+
success)
78+
echo "comment=Docker image was pushed with the tag `${{ needs.build-docker.outputs.build_version }}`" >> $GITHUB_OUTPUT
79+
echo "reaction=+1" >> $GITHUB_OUTPUT
80+
;;
81+
skipped)
82+
echo "comment=Workflow has been skipped" >> $GITHUB_OUTPUT
83+
echo "reaction=confused" >> $GITHUB_OUTPUT
84+
;;
85+
cancelled)
86+
echo "comment=Workflow has been canceled" >> $GITHUB_OUTPUT
87+
echo "reaction=confused" >> $GITHUB_OUTPUT
88+
;;
89+
*)
90+
echo "comment=**Error**: failed to execute \"${{ github.event.client_payload.slash_command.args.unnamed.arg1 }}\" command" >> $GITHUB_OUTPUT
91+
echo "reaction=-1" >> $GITHUB_OUTPUT
92+
;;
93+
esac
8094
81-
- name: Add reaction to command comment on failure
95+
- name: Add reaction to command comment
8296
uses: peter-evans/create-or-update-comment@v3
83-
if: needs.build-docker.result == 'failure'
8497
with:
8598
token: ${{ secrets.GIT_PAT }}
8699
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
87100
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
88101
body: |
89-
> **Error**: failed to execute "${{ github.event.client_payload.slash_command.args.unnamed.arg1 }}" command
90-
reactions: "-1"
102+
> ${{ steps.details.outputs.comment }}
103+
reactions: ${{ steps.details.outputs.reaction }}
91104

92105
help:
93106
if: github.event.client_payload.slash_command.args.unnamed.arg1 == 'help'

.github/workflows/gitleaks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
5959
- name: Upload test results
6060
if: failure()
61-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
6262
with:
6363
name: GitLeaks results
6464
path: results.sarif

0 commit comments

Comments
 (0)