Skip to content

馃摝 build: V1.0.1 #4

馃摝 build: V1.0.1

馃摝 build: V1.0.1 #4

name: delete-workflow-run-logs
on:
pull_request:
branches:
- main
pull_request_target:
push:
branches:
- main
jobs:
delete-workflow-run-logs:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
id: delete-workflow-run-logs
with:
token: ${{ secrets.GITHUB_TOKEN }}
per_page: 100
expire_time: 7d
status: completed
repo: ${{ github.repository.repo }}
owner: ${{ github.repository.owner }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 9.0.4
- uses: actions/setup-node@v3
with:
node-version: 18.12.0
cache: pnpm
- name: Get pnpm store directory
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install
run: pnpm install
- name: Lint
run: pnpm lint
- name: Prettier
run: pnpm format-check
- name: Build
run: pnpm build
commit-comment:
needs: lint
if: github.event.repository.name == 'deleteWorkflowRunLogs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
repository: dext7r/commit-comment
- name: Commit Comment
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
This commit was made with the following details:
- Commit ID: ${{ github.sha }}
- Commit Message: ${{ github.event.head_commit.message }}
- Run_id: ${{ github.run_id }}
- Repository: ${{ github.repository }}
- Commit Time: ${{ github.event.head_commit.timestamp }}
- Commit Author: ${{ github.event.head_commit.author.name }}
- Commit Author Email: ${{ github.event.head_commit.author.email }}
- Commit Author Date: ${{ github.event.head_commit.author.date }}
- Commit Committer: ${{ github.event.head_commit.committer.name }}
- Commit Committer Email: ${{ github.event.head_commit.committer.email }}