Skip to content

fix fork me ribbon

fix fork me ribbon #55

Workflow file for this run

name: Compile
on:
push:
branches:
- master
repository_dispatch:
types: [compile]
jobs:
Compile:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Build 🗜️
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COFFEELINT_VERSION: ${{ github.event.client_payload.coffeelint_version }}
run: |
npm run build
if ! git diff --quiet; then
git config --global user.email "<>"
git config --global user.name "GitHub Actions"
if [ -z "$COFFEELINT_VERSION" ]; then
git commit -am "build"
else
git commit -am "v${COFFEELINT_VERSION}"
fi
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/coffeelint/coffeelint.github.io.git" HEAD:master
else
echo "Nothing to commit"
fi