Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deep-cold-storage/dev-box
📚 Pinnable dynamic Gist with your latest Dev.to post.
https://github.com/deep-cold-storage/dev-box
actions gist pinned-gist python
Last synced: about 2 months ago
JSON representation
📚 Pinnable dynamic Gist with your latest Dev.to post.
- Host: GitHub
- URL: https://github.com/deep-cold-storage/dev-box
- Owner: Deep-Cold-Storage
- License: gpl-3.0
- Archived: true
- Created: 2020-03-07T11:28:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T18:58:01.000Z (over 4 years ago)
- Last Synced: 2024-05-01T19:22:36.107Z (7 months ago)
- Topics: actions, gist, pinned-gist, python
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dev-Box
Pinnable dynamic Gist with your latest Dev.to post!
***
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)**Dev-Box** is a simple **GitHub Action** built to make dynamic Gist displaying your latest post from Dev.to
## 🎉 Usage
**To start, you need to prepare some things:**
- Create a new public GitHub Gist at https://gist.github.com/- Create an Access Token with the `gist` scope and save it.
You can do that at https://github.com/settings/tokens/new
**After getting this done:**
- Fork this repository.- Go to your fork's **Settings > Secrets** page add the following secrets:
- **`DEVTO_USERNAME`** - Your username from Dev.to
- **`GH_TOKEN`** - The access token you saved earlier.
- **`GIST_ID`** - The ID of your newly created public Gist.*It will look like this:*
`https://gist.github.com/RangerDigital/`**`d1b79f73d3e5a2420ed370b0059dba42`**.- Delete a `.github/workflows/schedule.yml` file.
- Create a `.github/workflows/dev-box.yml` file like this:
```yml
name: Update GitHub Gist with Dev-box!on:
schedule:
- cron: '*/10 * * * *'jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@master- name: Update latest post from Dev.to
uses: rangerdigital/dev-box@master
with:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIST_ID: ${{ secrets.GIST_ID }}
DEVTO_USERNAME: ${{ secrets.DEVTO_USERNAME }}
```
**That's It!**
Now every 10 minutes `dev-box.yml` workflow will update your Gist.
## 🚧 Contributing
**You are more than welcome to help me improve Dev-Box!**
Just fork this project from the `master` branch and submit a Pull Request (PR).
## 📃 License
This project is licensed under [GPL-3.0](https://choosealicense.com/licenses/gpl-3.0/) .