https://github.com/opt-nc/domaine-nc-action
GitHub Action to check if your *.nc domain name is not expired and when it will be
https://github.com/opt-nc/domaine-nc-action
domaine-nc github-actions glia
Last synced: about 2 months ago
JSON representation
GitHub Action to check if your *.nc domain name is not expired and when it will be
- Host: GitHub
- URL: https://github.com/opt-nc/domaine-nc-action
- Owner: opt-nc
- License: gpl-3.0
- Created: 2021-12-27T04:44:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-25T03:26:54.000Z (over 2 years ago)
- Last Synced: 2026-04-19T10:13:48.398Z (about 2 months ago)
- Topics: domaine-nc, github-actions, glia
- Language: JavaScript
- Homepage: https://dev.to/optnc/avoid-domain-name-expiration-with-gh-actions-issues-rapidapi-24
- Size: 982 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/opt-nc/domaine-nc-action/actions/workflows/check-dist.yml)
[](https://github.com/opt-nc/domaine-nc-action/actions/workflows/test.yml)
# đģ domaine-nc-action
GitHub Action to check if your `*.nc` domain name is not expired and when it will be.
## â
Usage
đ Under the hoods, [domain-nc Free Rapid API](https://rapidapi.com/opt-nc-opt-nc-default/api/domaine-nc) is called, so you need a registration key (_available for free_).
Let's see an example :
```yml
on:
schedule:
- cron: '0 7 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get validity metadata for opt.nc
id: metadata
uses: opt-nc/domaine-nc-action@v1
with:
api-key: ${{ secrets.RAPID_API_KEY }}
name: opt
- name: Send a message to Slack if domain expires within 5 days
if: ${{ steps.metadata.outputs.daysBeforeExpiration < 5 }}
uses: bryannice/gitactions-slack-notification@2.0.0
env:
SLACK_INCOMING_WEBHOOK: ${{ secrets.SLACK_INCOMING_WEBHOOK }}
SLACK_MESSAGE: opt.nc will expires in less than 5 days
SLACK_TITLE: Domain name expiration reminder
```
In this example, a Slack message is send based on the output of the action for domain name `opt.nc`.
### âšī¸ Configuration
| name | description | required | default |
| --------- | -------------------------------------------------------------------- | -------- | ------- |
| `api-key` | RapidAPI key | yes | |
| `name` | Domain name witout extension | yes | |
| `ext` | Domain extension between :
- `nc`
- `asso.nc`
- `nom.nc` | yes | `nc` |
### âŦ Outputs
| name | description |
| ---------------------- | ----------------------------------------- |
| `expired` | `'true'` or `'false'` |
| `expirationDate` | `'yyyy-mm-dd'` |
| `daysBeforeExpiration` | Number of days before domain name expires |
## Go see the demo worflow ! đ
It's [here](https://github.com/opt-nc/domaine-nc-action-demo) !
Enjoy đ