Skip to content

Readme Credly Badges ​

Uma ação do GitHub que atualiza automaticamente seu README.md (ou qualquer arquivo markdown) com os detalhes do seus emblemas Credly, sem necessidade de edições manuais!

ref-reporef-official-docref-dependent-action

Uso ​

  1. No repositório crie um diretório .github/workflows/.
  2. Adicione o arquivo update-badges.yaml con o seguinte conteúdo:
yaml
name: Update Credly Badges

on:
schedule:
  - cron: '0 0 * * *' # Executa diariamente às 00:00 UTC
workflow_dispatch: # Opcional: permite disparo manual

permissions:
contents: write # Required if using the default GITHUB_TOKEN

jobs:
update-readme:
  name: Update README with Credly Badges
  runs-on: ubuntu-latest

  steps:
    - name: Update Badges in README
      uses: jd-35656/readme-credly-badges@v1
      with:
        credly_username: 'your-credly-username'
        github_token: ${{ secrets.GITHUB_TOKEN }}
  1. In your repository, create or edit the README.md file to include:
markdown
## Credly Badges
<!-- START CREDLY BADGES -->
<!-- END CREDLY BADGES -->

Parâmetros ​

Clique para exibir/fechar os parâmetros

NomeTipoObrigatórioPadrãoDescriçãoMais Observações
ref-actions
credly_usernamestring{github.actor}Your Credly username
badge_sizestring150x150Tamanho da imagem do emblema (por exemplo, 150x150, 680x680)
badge_sort_bystringissuedOrganizaado por.Valores opcionais: issued updated accepted.
github_api_urlstringhttps://api.github.comURL da API no GitHub (para uso do GitHub Enterprise).
github_tokenstringtrue{github.token}Token com acesso para gravação do repositório.
github_repostring{github.repository}Repositório GitHub de destino.
github_branchstringmainBranch onde o arquivo de destino está localizado.
readme_filestringREADME.mdCaminho para atualizar o arquivo markdown.
commit_messagestringUpdated README with new badgesMensagem de commit personalizada.

Exemplos ​

markdown
### Credly Badges

<!-- START CREDLY BADGES -->
[![HashiCorp Certified: Terraform Associate (003)](https://images.credly.com/size/150x150/images/ed4be915-68f8-428a-b332-40ded9084ee5/blob)](https://www.credly.com/badges/9818630e-28f4-4541-964c-e79041c4d601)
[![AWS Certified DevOps Engineer – Professional](https://images.credly.com/size/150x150/images/bd31ef42-d460-493e-8503-39592aaf0458/image.png)](https://www.credly.com/badges/d557a8cd-735a-4abe-8f83-0f2e4f514a2c)
[![Red Hat System Administration II (RH134) - Ver. 9.0](https://images.credly.com/size/150x150/images/b9d7d72b-ff77-4bd0-af19-7cedff6f6ae3/Red_Hat_System_Administration_II.png)](https://www.credly.com/badges/06bb5e5a-8069-4d4d-9f39-d608dbf84cd3)
[![Red Hat System Administration I (RH124) - Ver. 9.0](https://images.credly.com/size/150x150/images/cefff7f2-8ca9-40a1-a5f8-17139fccb048/Red_Hat_System_Administration_I.png)](https://www.credly.com/badges/adfadf9c-8271-43d7-8edb-ae2370fe272d)
[![AWS Certified Developer – Associate](https://images.credly.com/size/150x150/images/b9feab85-1a43-4f6c-99a5-631b88d5461b/image.png)](https://www.credly.com/badges/0def91c4-2a33-47a9-90fb-0cbaaaaca301)
[![AWS Certified Cloud Practitioner](https://images.credly.com/size/150x150/images/00634f82-b07f-4bbd-a6bb-53de397fc3a6/image.png)](https://www.credly.com/badges/8cdd9a26-4452-410d-9d20-b351629dcf75)
[![AWS Partner: Technical Accredited](https://images.credly.com/size/150x150/images/a253b994-caa6-4dd1-bf0e-434dd012b1f6/image.png)](https://www.credly.com/badges/3ccfe59f-8525-4b35-bacb-d5955486bef4)
<!-- END CREDLY BADGES -->

Credly Badges ​

HashiCorp Certified: Terraform Associate (003) AWS Certified DevOps Engineer – Professional Red Hat System Administration II (RH134) - Ver. 9.0 Red Hat System Administration I (RH124) - Ver. 9.0 AWS Certified Developer – Associate AWS Certified Cloud Practitioner AWS Partner: Technical Accredited

Readme Widget Hub (v4.3.0) MIT Licensed