diff --git a/.github/scripts/files/examples.yml b/.github/scripts/files/examples.yml index a1bb7fb9..1829a315 100644 --- a/.github/scripts/files/examples.yml +++ b/.github/scripts/files/examples.yml @@ -41,7 +41,7 @@ jobs: if: "github.repository == 'lowlighter/metrics'" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Checkout examples @@ -68,6 +68,15 @@ jobs: git commit -m "chore: update examples" git push --force + set +e + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git pull + sudo cp /metrics_renders/* ./ + git add --all + git commit -m "chore: update examples" + git push --force + # ====================================================================================== # Special job used to render lowlighter/metrics repository assets # ====================================================================================== @@ -78,7 +87,7 @@ jobs: if: "github.repository == 'lowlighter/metrics'" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Checkout examples diff --git a/.github/workflows/branches.yml b/.github/workflows/branches.yml index bd0bf5f7..5b3dede5 100644 --- a/.github/workflows/branches.yml +++ b/.github/workflows/branches.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Comment on pull request - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | const {issue:{number:issue_number}, repo:{owner, repo}} = context diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66dec2e1..b0160e64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: if: always() && (needs.build-test-analyze.result == 'success' || needs.build-test-analyze.result == 'skipped') steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup Dprint @@ -50,11 +50,11 @@ jobs: needs: [ format ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup NodeJS - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 - name: Pull changes @@ -73,11 +73,11 @@ jobs: needs: [ update-indexes ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup NodeJS - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 - name: Pull @@ -96,7 +96,7 @@ jobs: needs: [ update-indexes ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login to GitHub registry run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Build docker image @@ -180,7 +180,7 @@ jobs: if: contains(github.event.head_commit.message, '[release]') steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login to GitHub registry run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Pull docker image (master) @@ -201,11 +201,11 @@ jobs: needs: [ docker-release ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup NodeJS - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 - name: Setup metrics @@ -254,9 +254,9 @@ jobs: needs: [ action-latest-test, deploy-latest ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup NodeJS - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 - name: Setup metrics diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 53bb3df9..c7bed12a 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -13,7 +13,7 @@ jobs: continue-on-error: true steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run script run: ./delete_ghcr_dangling_images.sh lowlighter metrics working-directory: .github/actions/ghcr-clean diff --git a/.github/workflows/examples.presets.yml b/.github/workflows/examples.presets.yml index 407ffb2b..2e220d37 100644 --- a/.github/workflows/examples.presets.yml +++ b/.github/workflows/examples.presets.yml @@ -10,11 +10,11 @@ jobs: if: "github.repository == 'lowlighter/metrics'" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup NodeJS - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 - name: Setup metrics diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 414aa419..c375d9ef 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -41,7 +41,7 @@ jobs: if: "github.repository == 'lowlighter/metrics'" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Checkout examples @@ -1347,7 +1347,7 @@ jobs: if: "github.repository == 'lowlighter/metrics'" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Checkout examples diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 3b5aadee..80c8c77c 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -7,7 +7,7 @@ jobs: name: Label issue and pull requests runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 + - uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/config/label.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 9e937f73..69f76154 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -40,7 +40,7 @@ jobs: continue-on-error: true steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run script run: ./delete_workflows.sh lowlighter/metrics working-directory: .github/actions/ghcr-clean diff --git a/.github/workflows/test.presets.yml b/.github/workflows/test.presets.yml index 4053a8e1..38b992f1 100644 --- a/.github/workflows/test.presets.yml +++ b/.github/workflows/test.presets.yml @@ -16,12 +16,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 ref: master - name: Setup NodeJS - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 - name: Setup metrics diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9cbc1d34..f86a4938 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup NodeJS - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 - name: Setup metrics @@ -36,7 +36,7 @@ jobs: needs: [ lint ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Format code with dprint run: | curl -fsSL https://dprint.dev/install.sh | sh @@ -55,7 +55,7 @@ jobs: needs: [ lint ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup CodeQL uses: github/codeql-action/init@v2 with: diff --git a/source/plugins/core/README.md b/source/plugins/core/README.md index a44b3e2e..fb67beea 100644 --- a/source/plugins/core/README.md +++ b/source/plugins/core/README.md @@ -68,7 +68,7 @@ These options support two different syntaxes: Skip repositories by: - using their full handle (e.g. `user/repo`) - using only their name (e.g. `repo`) - - *in this case, the owner may be implicitly set to current `user` option* + - *in this case, the owner may be implicitly set to current `user` option* *Example: skipping repositories with basic pattern matching* ```yml @@ -81,7 +81,7 @@ repositories_skipped: my-repo, user/my-repo To enable advanced pattern matching to skip repositories, include `@use.patterns` at the beginning of the option value. -Skip repositories by writing file-glob patterns, with any of the supported operation: +Skip repositories by writing file-glob patterns, with any of the supported operation: - `#` to write comments - `-` to exclude repositories - *the `-` is implicit and may be omitted from excluding patterns* @@ -93,15 +93,15 @@ Skip repositories by writing file-glob patterns, with any of the supported opera ```yml repositories_skipped: | @use.patterns - + # Skip a specific repository (both patterns are equivalent) - user/repo + user/repo -user/repo # Skip repositories matching a given pattern user/repo-* {user1, user2, user3}/* - + # Include back a previously skipped repository org/repo +org/include-this-repo @@ -368,7 +368,7 @@ metrics: contents: write steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0