Skip to content

Commit

Permalink
[chore] Rename all pipeline files to standardise them (#274)
Browse files Browse the repository at this point in the history
As the first iteration to standartise the pipelines, I need that all the
pipelines are named the same way

I'll need to run scripts to analyse them such as `diff` and `yq` to see
differences between them and having them with different names is making
the scripts a mess.

This is the bare minimal start even if the effort to standardise the
pipelines finally does not happen.
  • Loading branch information
kang-makes authored Nov 22, 2023
1 parent 4d44eac commit d97944b
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 77 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
- uses: newrelic/newrelic-infra-checkers@v1
with:
golangci-lint-config: golangci-lint-limited
- name: Semgrep
uses: returntocorp/semgrep-action@v1
with:
auditOn: push
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
continue-on-error: ${{ github.event_name != 'pull_request' }}
Expand Down
File renamed without changes.
30 changes: 5 additions & 25 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,10 @@
# workflow_dispatch to work properly
name: Repolinter Action

# NOTE: This workflow will ONLY check the default branch!
# Currently there is no elegant way to specify the default
# branch in the event filtering, so branches are instead
# filtered in the "Test Default Branch" step.
on: [push, workflow_dispatch]
on:
push:
workflow_dispatch:

jobs:
repolint:
name: Run Repolinter
runs-on: ubuntu-latest
steps:
- name: Test Default Branch
id: default-branch
uses: actions/github-script@v2
with:
script: |
const data = await github.repos.get(context.repo)
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
- name: Checkout Self
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: actions/checkout@v4
- name: Run Repolinter
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: newrelic/repolinter-action@v1
with:
config_url: https://raw.githubusercontent.com/newrelic/.github/main/repolinter-rulesets/community-plus.yml
output_type: issue
repolinter:
uses: newrelic/coreint-automation/.github/workflows/reusable_repolinter.yaml@v2
18 changes: 18 additions & 0 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Security Scan

on:
push:
branches:
- master
- main
- renovate/**
pull_request:
schedule:
- cron: "0 3 * * *"

jobs:
security:
uses: newrelic/coreint-automation/.github/workflows/reusable_security.yaml@v2
with:
skip-dirs: "build"
skip-files: 'tests/integration/consumer-producer/pom.xml'
47 changes: 0 additions & 47 deletions .github/workflows/security.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
prerelease:
uses: newrelic/coreint-automation/.github/workflows/trigger_prerelease.yaml@v1
uses: newrelic/coreint-automation/.github/workflows/reusable_trigger_prerelease.yaml@v2
secrets:
bot_token: ${{ secrets.COREINT_BOT_TOKEN }}
slack_channel: ${{ secrets.COREINT_SLACK_CHANNEL }}
Expand Down

0 comments on commit d97944b

Please sign in to comment.