File tree Expand file tree Collapse file tree 6 files changed +26
-34
lines changed Expand file tree Collapse file tree 6 files changed +26
-34
lines changed Original file line number Diff line number Diff line change 26
26
sh.jbang.dev:443
27
27
28
28
- name : run maven-lockfile
29
- uses : chains-project/maven-lockfile@bdabb56b82feb242cd543af007b333bd8276e44e # v5.3.5
29
+ uses : chains-project/maven-lockfile@7a3323799269e0f3f1c1921411bb04aadf98eb77 # v5.4.0
30
30
with :
31
31
github-token : ${{ secrets.JRELEASER_GITHUB_TOKEN }}
32
32
include-maven-plugins : true
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ jobs:
25
25
26
26
- name : run maven-lockfile
27
27
if : ${{ github.event.pull_request.head.repo.full_name == github.repository }}
28
- uses : chains-project/maven-lockfile@bdabb56b82feb242cd543af007b333bd8276e44e # v5.3.5
28
+ uses : chains-project/maven-lockfile@7a3323799269e0f3f1c1921411bb04aadf98eb77 # v5.4.0
29
29
with :
30
30
github-token : ${{ secrets.JRELEASER_GITHUB_TOKEN }}
31
31
include-maven-plugins : true
32
32
33
33
- name : run maven-lockfile (fork/external)
34
34
if : ${{ github.event.pull_request.head.repo.full_name != github.repository }}
35
- uses : chains-project/maven-lockfile@bdabb56b82feb242cd543af007b333bd8276e44e # v5.3.5
35
+ uses : chains-project/maven-lockfile@7a3323799269e0f3f1c1921411bb04aadf98eb77 # v5.4.0
36
36
with :
37
37
github-token : ${{ secrets.GITHUB_TOKEN }}
38
38
include-maven-plugins : true
Original file line number Diff line number Diff line change 76
76
- name : Generate Readme
77
77
run : mvn generate-resources resources:copy-resources
78
78
- name : run maven-lockfile (generate new lockfile for release version)
79
- run : mvn io.github.chains-project:maven-lockfile:5.3.5 :generate
79
+ run : mvn io.github.chains-project:maven-lockfile:5.4.0 :generate
80
80
shell : bash
81
81
- name : commit changes
82
82
run : |
@@ -125,7 +125,7 @@ jobs:
125
125
- name : Generate Readme
126
126
run : mvn generate-resources resources:copy-resources -q
127
127
- name : run maven-lockfile (generate new lockfile for -SNAPSHOT version)
128
- run : mvn io.github.chains-project:maven-lockfile:5.3.5 :generate
128
+ run : mvn io.github.chains-project:maven-lockfile:5.4.0 :generate
129
129
shell : bash
130
130
# Commit and push changes
131
131
- name : Commit & Push changes
Original file line number Diff line number Diff line change 24
24
sh.jbang.dev:443
25
25
26
26
- name : run maven-lockfile
27
- uses : chains-project/maven-lockfile@bdabb56b82feb242cd543af007b333bd8276e44e # v5.3.5
27
+ uses : chains-project/maven-lockfile@7a3323799269e0f3f1c1921411bb04aadf98eb77 # v5.4.0
28
28
with :
29
29
github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -47,21 +47,17 @@ runs:
47
47
run : curl -Ls https://sh.jbang.dev | bash -s - app setup
48
48
shell : bash
49
49
- name : Get all changed pom.xml and workflow file(s)
50
- id : detect-changes
51
- run : |
52
- CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- '**/pom.xml' '**/${{ inputs.workflow-filename }}')
53
- echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
54
- shell : bash
55
- - name : Print all changed files
56
- run : echo "All changed files are $CHANGED_FILES"
50
+ id : changed-files
51
+ uses : tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45
52
+ with :
53
+ files : |
54
+ **/pom.xml
55
+ **/${{ inputs.workflow-filename}}
56
+ - name : print all changed files
57
+ run : echo all changed files are ${{ steps.changed-files.outputs.all_changed_files }}
57
58
shell : bash
58
59
- name : Set POM_CHANGED environment variable
59
- run : |
60
- if [[ -n "$CHANGED_FILES" ]]; then
61
- echo "POM_CHANGED=true" >> $GITHUB_ENV
62
- else
63
- echo "POM_CHANGED=false" >> $GITHUB_ENV
64
- fi
60
+ run : echo "POM_CHANGED=${{ steps.changed-files.outputs.any_changed}}" >> $GITHUB_ENV
65
61
shell : bash
66
62
- name : print POM-CHANGED
67
63
run : echo "pom changed ${{ env.POM_CHANGED }}"
70
66
run : echo "COMMIT_UPDATED_LOCKFILE=${{ inputs.commit-lockfile }}" >> $GITHUB_ENV
71
67
shell : bash
72
68
- id : action
73
- run : ~/.jbang/bin/jbang --repos 'mavencentral' io.github.chains-project:maven-lockfile-github-action:5.3.5
69
+ run : ~/.jbang/bin/jbang --repos 'mavencentral' io.github.chains-project:maven-lockfile-github-action:5.4.1-SNAPSHOT
74
70
shell : bash
75
71
env :
76
72
JSON_INPUTS : ${{ toJSON(inputs) }}
Original file line number Diff line number Diff line change @@ -47,21 +47,17 @@ runs:
47
47
run : curl -Ls https://sh.jbang.dev | bash -s - app setup
48
48
shell : bash
49
49
- name : Get all changed pom.xml and workflow file(s)
50
- id : detect-changes
51
- run : |
52
- CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- '**/pom.xml' '**/${{ inputs.workflow-filename }}')
53
- echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
54
- shell : bash
55
- - name : Print all changed files
56
- run : echo "All changed files are $CHANGED_FILES"
50
+ id : changed-files
51
+ uses : tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45
52
+ with :
53
+ files : |
54
+ **/pom.xml
55
+ **/${{ inputs.workflow-filename}}
56
+ - name : print all changed files
57
+ run : echo all changed files are ${{ steps.changed-files.outputs.all_changed_files }}
57
58
shell : bash
58
59
- name : Set POM_CHANGED environment variable
59
- run : |
60
- if [[ -n "$CHANGED_FILES" ]]; then
61
- echo "POM_CHANGED=true" >> $GITHUB_ENV
62
- else
63
- echo "POM_CHANGED=false" >> $GITHUB_ENV
64
- fi
60
+ run : echo "POM_CHANGED=${{ steps.changed-files.outputs.any_changed}}" >> $GITHUB_ENV
65
61
shell : bash
66
62
- name : print POM-CHANGED
67
63
run : echo "pom changed ${{ env.POM_CHANGED }}"
70
66
run : echo "COMMIT_UPDATED_LOCKFILE=${{ inputs.commit-lockfile }}" >> $GITHUB_ENV
71
67
shell : bash
72
68
- id : action
73
- run : ~/.jbang/bin/jbang --repos 'mavencentral' io.github.chains-project:maven-lockfile-github-action:5.3.5
69
+ run : ~/.jbang/bin/jbang --repos 'mavencentral' io.github.chains-project:maven-lockfile-github-action:${project.version}
74
70
shell : bash
75
71
env :
76
72
JSON_INPUTS : ${{ toJSON(inputs) }}
You can’t perform that action at this time.
0 commit comments