GitHub Action
Action Image Using Cloudinary
1.0.1
Latest version
Post a image on the pull request. Usefull for screenshots of failed E2E tests.
If you encounter the "Resource not accessible by integration" you need to add the following permissions:
permissions:
contents: write
actions: read
checks: write
The github token to perform api actions, can be set to
${{GITHUB_TOKEN}}
or a custom one.
The path to the image files, it supports glob.
(Ex: ./my-image/**/*.png)
The title to display on the annotations
(Ex: Failed E2E Tests)
Where to upload the pictures to
(Default: cloudinary)
, uses form POST to upload.
Cloudinary account name
Cloudinary API Key
Cloudinary API Secret Key
- name: Upload failed tests
if: ${{ failure() }}
uses: edunad/actions-image@v2.0.0
with:
path: './test/pics/**'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
title: 'Meow 🙀'
cloud-name: dqydn2j2x
api-key: 155652779465454
api-secret: ${{ secrets.CLOUDINARY_API_SECRET }}