Skip to content
Merged
44 changes: 44 additions & 0 deletions .github/workflows/check-execute-workflow-dist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Check and Update dist in js actions

on:
push:
branches:
- main
paths:
- 'execute-workflow/**'

permissions:
contents: write
Comment on lines +10 to +11
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is needed tbh, since you'll be using the service acc token anyways


jobs:
check-and-update-dist:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: execute-workflow/package-lock.json

- name: Install dependencies
working-directory: execute-workflow
run: npm ci

- name: Rebuild dist
working-directory: execute-workflow
run: npm run build

- name: Commit and push if changed
uses: EndBug/add-and-commit@v9
with:
author_name: Apify Release Bot
author_email: [email protected]
message: "chore: rebuild execute-workflow dist [skip ci]"
add: 'execute-workflow/dist/'