Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatoares-bot committed Dec 19, 2024
1 parent 6a0e68a commit 0f7097e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/srtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
{
"attachments": [{
"color": "good",
"text": ":rocket: New runtime build for ${{ matrix.chain }} (${{ github.event.inputs.ref || github.ref_name }})\nDownload artifacts: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload_artifacts.outputs.artifact_id }}"
"text": ":rocket: New runtime build for ${{ matrix.chain }} (${{ github.event.inputs.ref || github.ref_name }})\nDownload artifacts: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload_artifacts.outputs.artifact-id }}"
}]
}
env:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/test-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test Artifact ID

on:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Create a file
run: echo "I won't live long" > my_file.txt

- name: Upload Artifact
id: upload_artifact
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: my_file.txt
retention-days: 5

- name: Print Artifact Info
run: |
echo "Artifact ID: ${{ steps.upload_artifact.outputs.artifact-id }}"
echo "Artifact URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload_artifact.outputs.artifact-id }}"
echo "URL short: ${{steps.upload_artifact.outputs.artifact-url}}"
- uses: 8398a7/action-slack@v3
if: success()
with:
status: custom
fields: workflow,job,commit,repo,ref,author,took
custom_payload: |
{
"attachments": [{
"color": "good",
"text": "Artifact uploaded!\nDownload URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload_artifact.outputs.artifact-id }}"
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 0f7097e

Please sign in to comment.