Skip to content

Commit 58b5db8

Browse files
authored
refactor: remove unused code (#270)
Test PR: splunk/splunk-add-on-for-mysql#487
1 parent 2c0d528 commit 58b5db8

File tree

3 files changed

+3
-46
lines changed

3 files changed

+3
-46
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,6 @@ jobs:
242242
- setup-workflow
243243
if: ${{ needs.setup-workflow.outputs.skip-workflow != 'Yes' }}
244244
outputs:
245-
sc4s: ghcr.io/${{ github.repository }}/container:${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.version'] }}
246-
container_tags: ${{ steps.docker_action_meta.outputs.tags }}
247-
container_labels: ${{ steps.docker_action_meta.outputs.labels }}
248-
container_buildtime: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.created'] }}
249-
container_version: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.version'] }}
250-
container_revision: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.revision'] }}
251-
container_base: ${{ fromJSON(steps.docker_action_meta.outputs.json).tags[0] }}
252245
matrix_latestSplunk: ${{ steps.matrix.outputs.latestSplunk }}
253246
matrix_supportedSC4S: ${{ steps.matrix.outputs.supportedSC4S }}
254247
matrix_combinedSplunkversion: ${{ steps.combined_Splunkmatrix.outputs.combinedSplunkversions }}
@@ -258,39 +251,12 @@ jobs:
258251
contents: write
259252
packages: read
260253
steps:
261-
- name: Checkout
262-
uses: actions/checkout@v3
254+
- uses: actions/checkout@v3
263255
with:
264256
submodules: false
265257
persist-credentials: false
266-
- name: Semantic Release
267-
id: version
268-
uses: splunk/semantic-release-action@v1.3
269-
with:
270-
dry_run: true
271-
git_committer_name: ${{ secrets.SA_GH_USER_NAME }}
272-
git_committer_email: ${{ secrets.SA_GH_USER_EMAIL }}
273-
gpg_private_key: ${{ secrets.SA_GPG_PRIVATE_KEY }}
274-
passphrase: ${{ secrets.SA_GPG_PASSPHRASE }}
275-
env:
276-
GITHUB_TOKEN: ${{ github.token }}
277-
- name: Docker meta
278-
id: docker_action_meta
279-
uses: docker/metadata-action@v5.5.1
280-
with:
281-
images: ghcr.io/${{ github.repository }}/container
282-
tags: |
283-
type=sha,format=long
284-
type=sha
285-
type=semver,pattern={{version}},value=${{ steps.version.outputs.new_release_version }}
286-
type=semver,pattern={{major}},value=${{ steps.version.outputs.new_release_version }}
287-
type=semver,pattern={{major}}.{{minor}},value=${{ steps.version.outputs.new_release_version }}
288-
type=ref,event=branch
289-
type=ref,event=pr
290-
- name: matrix
291-
id: matrix
258+
- id: matrix
292259
uses: splunk/addonfactory-test-matrix-action@v1.13
293-
294260
- name: Combined Splunk and SC4S Versions
295261
id: combined_Splunkmatrix
296262
run: |

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,7 @@ meta stage
5252

5353
**Description:**
5454

55-
- GitHub Action to extract metadata from Git reference and GitHub events.
56-
57-
**Action used:** https://github.com/docker/metadata-action
58-
59-
**Artifacts:**
60-
61-
- No Artifacts for this stage.
62-
63-
<img src="images/meta/meta_logs.png" alt="meta_logs" style="width:200px;"/>
64-
55+
- Determines which Splunk and SC4S versions to run tests with.
6556

6657
fossa-scan
6758
=======================

images/meta/meta_logs.png

-903 KB
Binary file not shown.

0 commit comments

Comments
 (0)