-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
938 changed files
with
951,001 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Doras Link Bio Generator | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
username: | ||
description: "Doras.to username" | ||
required: true | ||
git-email: | ||
description: "Git commit email" | ||
required: false | ||
default: "[email protected]" | ||
git-username: | ||
description: "Git commit username" | ||
required: false | ||
default: "GitHub Action" | ||
|
||
jobs: | ||
update-bio: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Update README with Doras Links | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
username: | ||
description: "Doras.to username" | ||
required: true | ||
git-email: | ||
description: "Git commit email" | ||
required: false | ||
default: "[email protected]" | ||
git-username: | ||
description: "Git commit username" | ||
required: false | ||
default: "GitHub Action" | ||
schedule: | ||
- cron: "0 0 * * *" # Runs daily | ||
|
||
jobs: | ||
update-readme: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Generate Doras Links | ||
uses: dorasto/github-links@v1 | ||
with: | ||
username: ${{ github.event.inputs.username }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Update README | ||
run: | | ||
# Read the generated markdown | ||
DORAS_CONTENT=$(cat doras-links.md) | ||
# Update README.md between markers | ||
sed -i '/<!-- DORAS-LINKS-START -->/,/<!-- DORAS-LINKS-END -->/c\<!-- DORAS-LINKS-START -->\n'"$DORAS_CONTENT"'\n<!-- DORAS-LINKS-END -->' README.md | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "${{ github.event.inputs.git-email || '[email protected]' }}" | ||
git config --local user.name "${{ github.event.inputs.git-username || 'GitHub Action' }}" | ||
git add README.md | ||
git commit -m "Update Doras links" || exit 0 | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"semi": true, | ||
"tabWidth": 4, | ||
"singleQuote": false, | ||
"jsxSingleQuote": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!-- DORAS-LINKS-START --> | ||
<!-- DORAS-LINKS-END --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: "Doras Link Bio Generator" | ||
description: "Generate a formatted markdown bio from Doras.to API" | ||
inputs: | ||
username: | ||
description: "Doras.to username" | ||
required: true | ||
outputs: | ||
markdown: | ||
description: "Generated markdown for readme" | ||
runs: | ||
using: "node20" | ||
main: "dist/index.js" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.