File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 7
7
workflow_dispatch :
8
8
9
9
env :
10
- OUTPUT_ROOT_DIR : packages/icon-files/
11
10
TARGET_BRANCH : ${{ github.event_name == 'workflow_dispatch' && github.ref_name || 'main' }}
12
11
13
12
jobs :
@@ -37,12 +36,17 @@ jobs:
37
36
env :
38
37
FIGMA_FILE_URL : ${{ secrets.FIGMA_FILE_URL }}
39
38
FIGMA_TOKEN : ${{ secrets.FIGMA_TOKEN }}
39
+ OUTPUT_ROOT_DIR : ../icon-files/
40
40
run : pnpm --filter @charcoal-ui/icons-cli cli:icons figma:export
41
41
42
42
- name : Optimize icons
43
+ env :
44
+ OUTPUT_ROOT_DIR : ../icon-files/
43
45
run : pnpm --filter @charcoal-ui/icons-cli cli:icons svg:optimize --ignoreFile ../../misc/icons-cli-denylist
44
46
45
47
- name : Generate icon files
48
+ env :
49
+ OUTPUT_ROOT_DIR : ../icon-files/
46
50
run : pnpm --filter @charcoal-ui/icons-cli cli:icons files:generate
47
51
48
52
- name : Generate github token
@@ -52,10 +56,15 @@ jobs:
52
56
app_id : ${{ secrets.CHARCOAL_BOT_APP_ID }}
53
57
private_key : ${{ secrets.CHARCOAL_BOT_PRIVATE_KEY }}
54
58
59
+ - run : |
60
+ pwd
61
+ ls -al
62
+
55
63
- name : Create Pull Request for updated icons
56
64
env :
57
65
GITHUB_ACCESS_TOKEN : ${{ steps.generate_token.outputs.token }}
58
66
GITHUB_REPO_OWNER : pixiv
59
67
GITHUB_REPO_NAME : charcoal
60
68
GITHUB_DEFAULT_BRANCH : ${{ env.TARGET_BRANCH }}
69
+ OUTPUT_ROOT_DIR : ../icon-files/
61
70
run : pnpm --filter @charcoal-ui/icons-cli cli:icons github:pr
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ export class GithubClient {
29
29
) {
30
30
const client = new this ( repoOwner , repoName , token , defaultBranch )
31
31
const outputDirFullPath = path . resolve ( process . cwd ( ) , outputDir )
32
+ // eslint-disable-next-line no-console
33
+ console . log ( outputDirFullPath )
32
34
const diff = await client . createTreeFromDiff ( outputDirFullPath )
33
35
// eslint-disable-next-line no-console
34
36
console . log ( `${ diff . length } files are changed` )
You can’t perform that action at this time.
0 commit comments