Skip to content

Merge pull request #4 from aelew/iconkit-2024 #47

Merge pull request #4 from aelew/iconkit-2024

Merge pull request #4 from aelew/iconkit-2024 #47

name: Update App Info
on:
push:
branches:
- main
jobs:
update-app-info:
if: "!contains(github.event.head_commit.message, 'Update app info')"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.RBD_GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: cd shipixen && npm install
- name: Run update script
run: cd shipixen/scripts && node parse-app-info.js
- name: Commit and push changes
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.RBD_GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'Update app info'
git push https://x-access-token:${{ secrets.RBD_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git