Skip to content

Merge pull request #188 from Hjgaming/main #137

Merge pull request #188 from Hjgaming/main

Merge pull request #188 from Hjgaming/main #137

Workflow file for this run

name: Raw API
on:
push:
branches: [main]
paths:
- "domains/*"
- "domains/AorzoHosting/*"
- ".github/workflows/raw-api.yml"
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-raw-api
cancel-in-progress: true
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- name: Generate App token
id: generated_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: is-cool-me/raw
path: raw
token: ${{ steps.generated_token.outputs.token }}
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Update Data
run: node raw/scripts/update.js
- name: Commit
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: "raw"
destination-github-username: is-cool-me
destination-repository-name: raw
user-email: 161685565+is-cool-me[bot]@users.noreply.github.com
user-name: is-cool-me[bot]
commit-message: "Update Data via is-cool-me/register"
env:
API_TOKEN_GITHUB: ${{ steps.generated_token.outputs.token }}