14
14
15
15
name : Docker Description Publish
16
16
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'
19
25
permissions : read-all
20
26
jobs :
21
27
setup-matrix :
@@ -28,24 +34,30 @@ jobs:
28
34
with :
29
35
egress-policy : audit
30
36
- 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
31
43
- name : Set matrix data
32
44
id : set-matrix
33
45
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