Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Use default value if github-token is not given #534

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ jobs:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- uses: ./
with:
token: '${{ secrets.GITHUB_TOKEN }}'
elm-json-path: emobu/elm.json
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,11 @@ jobs:
- name: Run snapshot action
uses: kachick/elm-dependency-submission@v1
with:
# Required: GITHUB_TOKEN will work. No needed PAT
token: "${{ secrets.GITHUB_TOKEN }}"
#
# Optional: Default "elm.json". Change it if different in your repository
elm-json-path: elm.json
#
# Optional: Default "elm.json". Change it if different in your repository
elm-json-path: elm.json
```

You can see the working image at [here](https://github.com/kachick/elm-dependency-submission/network/dependencies). It is parsing [emobu/elm.json](https://github.com/mobu-of-the-world/emobu/blob/main/elm.json).

<img src="./assets/snapshot.png?raw=true" alt="Example of snapshot" width=700>

## NOTE

Author is a newbie of elm-lang...
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ branding:
color: 'blue'
inputs:
token:
description: 'Basically GITHUB_TOKEN is enough.'
description: 'The GITHUB_TOKEN secret'
required: true
default: ${{ github.token }}
elm-json-path:
description: 'Targeting `elm.json` path. Not elm=tooling.json'
required: false
Expand Down
Loading