Skip to content

Commit d881c5c

Browse files
authored
👷 ci: Use version 5.4.0 with removed non-allowlisted github actions (#1095)
1 parent 9af76b7 commit d881c5c

File tree

6 files changed

+26
-34
lines changed

6 files changed

+26
-34
lines changed

‎.github/workflows/Lockfile.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
sh.jbang.dev:443
2727
2828
- name: run maven-lockfile
29-
uses: chains-project/maven-lockfile@bdabb56b82feb242cd543af007b333bd8276e44e # v5.3.5
29+
uses: chains-project/maven-lockfile@7a3323799269e0f3f1c1921411bb04aadf98eb77 # v5.4.0
3030
with:
3131
github-token: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
3232
include-maven-plugins: true

‎.github/workflows/LockfilePR.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
2626
- name: run maven-lockfile
2727
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
2929
with:
3030
github-token: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
3131
include-maven-plugins: true
3232

3333
- name: run maven-lockfile (fork/external)
3434
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
3636
with:
3737
github-token: ${{ secrets.GITHUB_TOKEN }}
3838
include-maven-plugins: true

‎.github/workflows/jreleaser.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Generate Readme
7777
run : mvn generate-resources resources:copy-resources
7878
- 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
8080
shell: bash
8181
- name: commit changes
8282
run: |
@@ -125,7 +125,7 @@ jobs:
125125
- name: Generate Readme
126126
run : mvn generate-resources resources:copy-resources -q
127127
- 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
129129
shell: bash
130130
# Commit and push changes
131131
- name: Commit & Push changes

‎.github/workflows/regenerate-lockfile.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
sh.jbang.dev:443
2525
2626
- name: run maven-lockfile
27-
uses: chains-project/maven-lockfile@bdabb56b82feb242cd543af007b333bd8276e44e # v5.3.5
27+
uses: chains-project/maven-lockfile@7a3323799269e0f3f1c1921411bb04aadf98eb77 # v5.4.0
2828
with:
2929
github-token: ${{ secrets.GITHUB_TOKEN }}

‎action.yml‎

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,17 @@ runs:
4747
run: curl -Ls https://sh.jbang.dev | bash -s - app setup
4848
shell: bash
4949
- 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 }}
5758
shell: bash
5859
- 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
6561
shell: bash
6662
- name: print POM-CHANGED
6763
run: echo "pom changed ${{ env.POM_CHANGED }}"
@@ -70,7 +66,7 @@ runs:
7066
run: echo "COMMIT_UPDATED_LOCKFILE=${{ inputs.commit-lockfile }}" >> $GITHUB_ENV
7167
shell: bash
7268
- 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
7470
shell: bash
7571
env:
7672
JSON_INPUTS: ${{ toJSON(inputs) }}

‎template/action.yml‎

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,17 @@ runs:
4747
run: curl -Ls https://sh.jbang.dev | bash -s - app setup
4848
shell: bash
4949
- 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 }}
5758
shell: bash
5859
- 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
6561
shell: bash
6662
- name: print POM-CHANGED
6763
run: echo "pom changed ${{ env.POM_CHANGED }}"
@@ -70,7 +66,7 @@ runs:
7066
run: echo "COMMIT_UPDATED_LOCKFILE=${{ inputs.commit-lockfile }}" >> $GITHUB_ENV
7167
shell: bash
7268
- 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}
7470
shell: bash
7571
env:
7672
JSON_INPUTS: ${{ toJSON(inputs) }}

0 commit comments

Comments
 (0)