Merge pull request #2559 from ilya-k-1/jfrog/add_jfrog_sast_flow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync workflows for GHES | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
sync: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | |
git config user.email "[email protected]" | |
git config user.name "GitHub Actions" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
cache-dependency-path: script/sync-ghes/package-lock.json | |
- name: Check starter workflows for GHES compat | |
run: | | |
npm ci | |
npx ts-node-script ./index.ts | |
working-directory: ./script/sync-ghes | |
- run: | | |
git add -A | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "No changes to commit" | |
else | |
git commit -m "Updating GHES workflows" | |
fi | |
- run: git push |