Skip to content

Commit

Permalink
Merge pull request #6 from bedrock-apis/new-examples
Browse files Browse the repository at this point in the history
New examples
  • Loading branch information
conmaster2112 authored Jun 18, 2024
2 parents 752f1b2 + a424371 commit de79b1f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 39 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Pull Request Check

on:
pull_request:
branches: [ main ]

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
run: |
echo Test
exit 0
29 changes: 29 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: After Push Generator

on:
push:
branches: [ main ]

permissions: write-all

jobs:
generation:
name: Content Generator
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: main

- name: Setup Node.js
uses: actions/setup-node@v3

- name: Running Clean Up Code
run: |
node ./.github/generate.contents.js
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Request checks"
git push
37 changes: 0 additions & 37 deletions .github/workflows/push_request.yml

This file was deleted.

5 changes: 3 additions & 2 deletions contents.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"date": 1718700236830,
"date": 1718705958052,
"contents": [
".github/generate.contents.js",
".github/workflows/push_request.yml",
".github/workflows/pull_request.yml",
".github/workflows/push.yml",
"README.md",
"contents.json",
"modules/test.json"
Expand Down

0 comments on commit de79b1f

Please sign in to comment.