Skip to content

Commit

Permalink
[chore] clean up unnecessary fields (open-telemetry#20672)
Browse files Browse the repository at this point in the history
The name of the github action used in these steps provide us with enough information about what the step is doing, the name is unnecessary and was used inconsistently.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored Apr 4, 2023
1 parent 9eb6ad6 commit b5f6a95
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 92 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,14 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- if: matrix.group == 'receiver-0'
name: install IIS
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools
- if: matrix.group == 'receiver-0'
name: Install Active Directory DS
run: Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with:
go-version: ~1.19.7
- name: Cache Go
Expand Down
75 changes: 25 additions & 50 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand All @@ -51,16 +49,14 @@ jobs:
runs-on: ubuntu-latest
needs: [setup-environment]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Check Collector Module Version
run: ./.github/workflows/scripts/check-collector-module-version.sh
check-codeowners:
runs-on: ubuntu-latest
needs: [setup-environment]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Check Code Owner Existence
run: ./.github/workflows/scripts/check-codeowners.sh check_code_owner_existence
- name: Check Component Existence
Expand All @@ -87,10 +83,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down Expand Up @@ -139,10 +133,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down Expand Up @@ -216,10 +208,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Cache Go
Expand Down Expand Up @@ -281,10 +271,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down Expand Up @@ -319,10 +307,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down Expand Up @@ -359,10 +345,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down Expand Up @@ -400,8 +384,7 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Build Examples
run: make build-examples

Expand Down Expand Up @@ -439,10 +422,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down Expand Up @@ -481,8 +462,7 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Ruby
Expand Down Expand Up @@ -528,8 +508,7 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download Binaries
Expand Down Expand Up @@ -569,8 +548,7 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Download Binaries
uses: actions/download-artifact@v3
with:
Expand All @@ -594,10 +572,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Mkdir bin and dist
Expand Down Expand Up @@ -664,8 +640,7 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set Release Tag
id: github_tag
run: ./.github/workflows/scripts/set_release_tag.sh
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]')}}

steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with:
go-version: ~1.19.7
- name: Cache Go
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
outputs:
md: ${{ steps.changes.outputs.md }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
Expand All @@ -29,8 +28,7 @@ jobs:
needs: changedfiles
if: ${{needs.changedfiles.outputs.md}}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ jobs:
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}

- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with:
go-version: ~1.19.7

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/create-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
- uses: actions/checkout@v3
- name: Install zsh
run: sudo apt-get update; sudo apt-get install zsh
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with:
go-version: ~1.19.7
- name: Run dependabot-pr.sh
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ jobs:
k8s-version: ["v1.26.0", "v1.25.3", "v1.24.7", "v1.23.13"]
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down Expand Up @@ -71,10 +69,8 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
- uses: actions/checkout@v3
with:
path: opentelemetry-collector-contrib
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with:
go-version: ~1.19.7
- name: Prepare release for contrib
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/prometheus-compliance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ jobs:
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: ${{ secrets.FORESIGHT_API_KEY }}
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
path: opentelemetry-collector-contrib
- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with:
go-version: ~1.19.7
- name: Cache Go
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/telemetrygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Build telemetrygen
uses: docker/build-push-action@v4
with:
Expand All @@ -30,8 +29,7 @@ jobs:
permissions:
packages: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -51,8 +49,7 @@ jobs:
permissions:
packages: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set Release Tag
id: github_tag
run: ./.github/workflows/scripts/set_release_tag.sh
Expand Down

0 comments on commit b5f6a95

Please sign in to comment.