Skip to content

Commit

Permalink
base 1 package
Browse files Browse the repository at this point in the history
  • Loading branch information
raghu0891 committed Nov 18, 2024
1 parent 74b69f6 commit 451e63f
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 18 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/sync-github-push-gha-metrics-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,25 @@ jobs:
steps:
- name: Collect Metrics
id: collect-gha-metrics
uses: goplugin/push-gha-metrics-action@v2.1.0
uses: goplugin/push-gha-metrics-action@dea9b546553cb4ca936607c2267a09c004e4ab3f # v3.0.0
with:
id: update-version
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID}}
this-job-name: Update Version
continue-on-error: true

- name: Checkout the repo
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Update version
env:
GH_TOKEN: ${{ secrets.GHA_ACTIONS_SOURCE_PULL_TOKEN }}
run: ./sync-from-source/sync.sh

- name: Open PR
uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 # v4.2.3
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
with:
title: Update push-gha-metrics-action
branch: chore/update-push-gha-metrics-action
Expand All @@ -66,16 +67,17 @@ jobs:
steps:
- name: Collect Metrics
id: collect-gha-metrics
uses: goplugin/push-gha-metrics-action@v2.1.0
uses: goplugin/push-gha-metrics-action@dea9b546553cb4ca936607c2267a09c004e4ab3f # v3.0.0
with:
id: update-snapshot
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID}}
this-job-name: Update Version
continue-on-error: true

- name: Checkout the repo
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: snapshot

Expand All @@ -85,7 +87,7 @@ jobs:
run: ./sync-from-source/sync.sh --snapshot

- name: Commit and push files
uses: planetscale/ghcommit-action@0e97298607962b704612dd4b7677600fdc363a21 # v0.1.17
uses: planetscale/ghcommit-action@21a8cda29f55e5cc2cdae0cdbdd08e38dd148c25 # v0.1.37
with:
commit_message: "Sync with push-gha-metrics-action-source@main"
repo: ${{ github.repository }}
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ inputs:
description: |
Json test result file to attach to the output logs, available types: go
example: {"testType":"go","filePath":"./go_test_results_path.json"}
test-results-batch-split-size:
required: false
default: "524288"
description: The byte size to break apart metric logs into. Defaults to 512 KB (1 * 1024 * 512)
additional-information:
required: false
description: |
Expand Down
Loading

0 comments on commit 451e63f

Please sign in to comment.