jobs:
devcard:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: devcard
uses: dailydotdev/[email protected]
with:
devcard_id: ${{ secrets.DEVCARD_ID }}
devcard_id
: this is the unique hash of the devcard, it can be found in the URL of the devcard.
https://api.daily.dev/devcards/0b156485612243bfa39092f30071e276.png
where the devcard_id is 0b156485612243bfa39092f30071e276
token
: GitHub Token used to commit the devcardcommit_branch
: The branch to commit the devcard to. Defaults to the branch of the action.commit_message
: The commit message to use when committing the devcard. Defaults to Update ${filename}
.
${filename}
in the message to refer to the filename of the devcard.commit_filename
: The filename to commit the devcard to. Defaults to devcard.svg
.
devcard.png
instead, or any other filename ending in .png
.dryrun
: If set to true
, the action will run as normal, but not actually commit the devcardThis will save the devcard as PNG and commit to a separate branch named devcard
.
jobs:
devcard:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: devcard
uses: dailydotdev/[email protected]
with:
devcard_id: ${{ secrets.DEVCARD_ID }}
commit_branch: devcard
commit_filename: devcard.png
commit_message: "chore: update ${filename}"
Since Dependabot
has native GitHub Actions support,
to enable it on your GitHub repo all you need to do is add the .github/dependabot.yml
file:
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"