Skip to content

Commit bf1b8f4

Browse files
authored
Update dockerhub-description.yml
1 parent f56f8cc commit bf1b8f4

File tree

1 file changed

+32
-20
lines changed

1 file changed

+32
-20
lines changed

.github/workflows/dockerhub-description.yml

+32-20
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@
1414

1515
name: Docker Description Publish
1616
on:
17-
push:
18-
branches: ["main"]
17+
# push:
18+
# branches: ["main"]
19+
workflow_dispatch:
20+
inputs:
21+
branch:
22+
description: 'Branch to run the workflow on'
23+
required: true
24+
default: 'main'
1925
permissions: read-all
2026
jobs:
2127
setup-matrix:
@@ -28,24 +34,30 @@ jobs:
2834
with:
2935
egress-policy: audit
3036
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
37+
- name: Identify changed files
38+
id: changed-files
39+
run: |
40+
# Get the list of files changed in the latest commit(s)
41+
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
42+
cat changed_files.txt
3143
- name: Set matrix data
3244
id: set-matrix
3345
run: echo "matrix=$(jq -c . < .github/dockerhub-readmes.json)" >> $GITHUB_OUTPUT
34-
publish-dockerhub-description:
35-
runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
36-
needs: setup-matrix
37-
strategy:
38-
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
39-
fail-fast: false
40-
steps:
41-
- name: Harden Runner
42-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
43-
with:
44-
egress-policy: audit
45-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
46-
- uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae # v4.0.0
47-
with:
48-
username: ${{ secrets.DOCKERHUB_USERNAME }}
49-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
50-
repository: ${{ matrix.readmes.repo-name }}
51-
readme-filepath: ${{ matrix.readmes.fname }}
46+
# publish-dockerhub-description:
47+
# runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
48+
# needs: setup-matrix
49+
# strategy:
50+
# matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
51+
# fail-fast: false
52+
# steps:
53+
# - name: Harden Runner
54+
# uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
55+
# with:
56+
# egress-policy: audit
57+
# - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
58+
# - uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae # v4.0.0
59+
# with:
60+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
61+
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
62+
# repository: ${{ matrix.readmes.repo-name }}
63+
# readme-filepath: ${{ matrix.readmes.fname }}

0 commit comments

Comments
 (0)