-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.55 KB
/
format.yml
File metadata and controls
47 lines (47 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: format
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
format:
runs-on: ubuntu-latest
env:
SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS: 168 # 7 days
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.sha }}
persist-credentials: false
- uses: ./
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
bun-version-file: .bun-version
- name: Install
if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: |
curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
bun install
- run: bun run build
if: github.event_name != 'pull_request' || github.event.action != 'closed'
- uses: dev-hato/actions-diff-pr-management@5cd3792bc98beed11cda90898bc81af6bfa199af # v2.2.5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
branch-name-prefix: fix-format
pr-title-prefix: Fix format
pr-description-prefix: CI fixed format.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true