Skip to content

Commit 20a969c

Browse files
committed
chore: update CI/CD
1 parent 18c5342 commit 20a969c

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.github/workflows/format.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Format and push
2+
3+
# Github action will require permission to write to repo
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
format:
12+
runs-on: ubuntu-latest
13+
container:
14+
image: dart:stable
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: true
21+
ref: ${{ github.event.pull_request.head.ref }}
22+
23+
- name: Format Dart code
24+
run: dart format .
25+
26+
- name: git config
27+
run: git config --global --add safe.directory /__w/sdk-for-dart/sdk-for-dart # required to fix dubious ownership
28+
29+
- name: Add & Commit
30+
uses: EndBug/add-and-commit@v9.1.4
31+
with:
32+
add: lib
33+

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+\.[0-9]+\.[0-9]+.*'
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write
12+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13+
with:
14+
environment: pub.dev

lib/src/enums/name.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ enum Name {
1212
v1Certificates(value: 'v1-certificates'),
1313
v1Builds(value: 'v1-builds'),
1414
v1Messaging(value: 'v1-messaging'),
15-
v1Migrations(value: 'v1-migrations'),
16-
hamsterv1(value: 'hamsterv1');
15+
v1Migrations(value: 'v1-migrations');
1716

1817
const Name({
1918
required this.value

0 commit comments

Comments
 (0)