Bladeren bron

refactor(actions): refactor gh workflows

Sarah Norris 3 jaren geleden
bovenliggende
commit
15d19d4be0
2 gewijzigde bestanden met toevoegingen van 20 en 13 verwijderingen
  1. 17 11
      .github/workflows/update-themes.yml
  2. 3 2
      .github/workflows/validate-pr-title.yml

+ 17 - 11
.github/workflows/update-themes.yml

@@ -12,21 +12,27 @@ jobs:
     name: Update changelogs and versions
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - name: Checkout
+        uses: actions/checkout@v2
         with:
           # pulls all commits (needed for lerna to correctly version)
           fetch-depth: "0"
           all_commits: true
           all_tags: true
-
-      - uses: actions/setup-node@v2
+      - name: Setup Node.js
+        uses: actions/setup-node@v2
         with:
           node-version: 12
-      
-      - run: git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
-      - run: git config --global user.name "github-actions[bot]"
-      - run: npm ci
-      - run: npm run update-themes
-      - run: git add . 
-      - run: git commit -m "chore:"" auto-update theme info"
-      - run: git push
+      - name: Git Identity
+        run: |
+          git config --global user.email 'github-actions[bot]@users.noreply.github.com'
+          git config --global user.name 'github-actions[bot]'
+      - name: Update Themes
+        run: |
+          npm ci
+          npm run update-themes
+      - name: Commit Changes
+        run: |
+          git add . 
+          git commit -m "chore:"" auto-update theme info"
+          git push

+ 3 - 2
.github/workflows/validate-pr-title.yml

@@ -12,8 +12,9 @@ jobs:
     name: Check PR title matches the Conventional Commits spec
     runs-on: ubuntu-latest
     steps:
-      - uses: amannn/action-semantic-pull-request@v3.4.6
+      - name: Semantic Pull Request
+        uses: amannn/action-semantic-pull-request@v3.4.6
         with:
-          validateSingleCommit: true
+            validateSingleCommit: true
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}