Rename sync-ghes workflow for consistancy

Issue #1497
This commit is contained in:
Daniel Schultz
2022-05-02 15:30:58 -04:00
committed by Dan Schultz
parent a8fd379975
commit f007e412ee
+34
View File
@@ -0,0 +1,34 @@
name: Sync workflows for GHES
on:
push:
branches:
- main
jobs:
sync:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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@v3
with:
node-version: '12'
- 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