Skip to content

Commit

Permalink
ci: added GitHub Actions (#366)
Browse files Browse the repository at this point in the history
* ci: added dependabot

* ci: added greetings.yml

* ci: added json check action

* ci: updated greetings.yml

when a PR and issue will be creating these messages will be shown
  • Loading branch information
priyankarpal authored Mar 22, 2023
1 parent 01e5b5c commit 627f0e2
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Update GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
19 changes: 19 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Greetings

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- name: Show Greetings Message
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "Great job, ${{ github.actor }}! 🎉 Thank you for submitting your pull request in LinksHub. Your contribution is valuable and we appreciate your efforts to improve our project. We'll review your changes and provide feedback as soon as possible. Keep up the great work!"
elif [ "${{ github.event_name }}" = "issues" ]; then
echo "Hello, ${{ github.actor }}! 🎉 Thank you for creating a new issue in LinksHub. Your contribution is highly appreciated, and we are eager to collaborate with you to resolve the issue. Your hard work and dedication are commendable. Keep up the excellent work!"
fi
17 changes: 17 additions & 0 deletions .github/workflows/jsoncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: JSON check

on:
push:
paths:
- "**.json"
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: json-syntax-check
uses: limitusus/json-syntax-check@v2
with:
pattern: "\\.json$"

1 comment on commit 627f0e2

@vercel
Copy link

@vercel vercel bot commented on 627f0e2 Mar 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

linkshub – ./

linkshub.vercel.app
linkshub-rupali-codes.vercel.app
linkshub-git-main-rupali-codes.vercel.app

Please sign in to comment.