mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-06 17:44:33 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99f3911475 | |||
|
|
1c171a4041 | ||
|
|
f5549d58f7 | ||
|
|
b73c36d4c4 | ||
|
|
05cd983353 | ||
|
|
9628916ec2 |
2
.github/workflows/pr-lint.yml
vendored
2
.github/workflows/pr-lint.yml
vendored
@@ -69,7 +69,7 @@ jobs:
|
|||||||
|
|
||||||
- name: MegaLinter
|
- name: MegaLinter
|
||||||
id: ml
|
id: ml
|
||||||
uses: oxsecurity/megalinter/flavors/cupcake@5a91fb06c83d0e69fbd23756d47438aa723b4a5a # v8.7.0
|
uses: oxsecurity/megalinter/flavors/cupcake@e08c2b05e3dbc40af4c23f41172ef1e068a7d651 # v8.8.0
|
||||||
|
|
||||||
- name: Check MegaLinter Results
|
- name: Check MegaLinter Results
|
||||||
id: check-results
|
id: check-results
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -17,6 +17,6 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
|
- uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ runs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
platforms: ${{ inputs.architectures }}
|
platforms: ${{ inputs.architectures }}
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ runs:
|
|||||||
platforms: ${{ inputs.platforms }}
|
platforms: ${{ inputs.platforms }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
||||||
with:
|
with:
|
||||||
platforms: ${{ inputs.platforms }}
|
platforms: ${{ inputs.platforms }}
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ runs:
|
|||||||
|
|
||||||
- name: Set up Cosign
|
- name: Set up Cosign
|
||||||
if: inputs.provenance == 'true'
|
if: inputs.provenance == 'true'
|
||||||
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
|
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
|
||||||
|
|
||||||
- name: Publish Image
|
- name: Publish Image
|
||||||
id: publish
|
id: publish
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ runs:
|
|||||||
platforms: ${{ inputs.platforms }}
|
platforms: ${{ inputs.platforms }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
||||||
with:
|
with:
|
||||||
platforms: ${{ inputs.platforms }}
|
platforms: ${{ inputs.platforms }}
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ runs:
|
|||||||
|
|
||||||
- name: Set up Cosign
|
- name: Set up Cosign
|
||||||
if: inputs.provenance == 'true'
|
if: inputs.provenance == 'true'
|
||||||
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
|
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
|
||||||
|
|
||||||
- name: Update Docker Hub Description
|
- name: Update Docker Hub Description
|
||||||
if: inputs.repository-description != '' || inputs.readme-file != ''
|
if: inputs.repository-description != '' || inputs.readme-file != ''
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ runs:
|
|||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
- name: Setup Git Config
|
- name: Setup Git Config
|
||||||
id: git-config
|
id: git-config
|
||||||
uses: ivuorinen/actions/set-git-config@d2412886ec73377cdc977ac2b2a45fc507f1c559 # 25.6.9
|
uses: ivuorinen/actions/set-git-config@05cd983353b4e6d3213389801daf0f9ec2af7a77 # 25.6.17
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
# │ Install packages for linting │
|
# │ Install packages for linting │
|
||||||
@@ -47,13 +47,21 @@ runs:
|
|||||||
- name: Setup Node.js and run tests
|
- name: Setup Node.js and run tests
|
||||||
if: steps.detect-node.outputs.found == 'true'
|
if: steps.detect-node.outputs.found == 'true'
|
||||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||||
with:
|
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
if: steps.detect-node.outputs.found == 'true'
|
if: steps.detect-node.outputs.found == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: npm ci
|
run: |
|
||||||
|
if [ -f pnpm-lock.yaml ]; then
|
||||||
|
npm install -g pnpm # GitHub Actions runners don’t come with pnpm
|
||||||
|
pnpm install
|
||||||
|
elif [ -f yarn.lock ]; then
|
||||||
|
yarn install
|
||||||
|
elif [ -f package-lock.json ]; then
|
||||||
|
npm ci
|
||||||
|
else
|
||||||
|
echo "No supported lockfile found, skipping Node.js dependencies installation."
|
||||||
|
fi
|
||||||
|
|
||||||
# PHP tests if composer.json exists
|
# PHP tests if composer.json exists
|
||||||
- name: Detect composer.json
|
- name: Detect composer.json
|
||||||
@@ -125,7 +133,7 @@ runs:
|
|||||||
- name: MegaLinter
|
- name: MegaLinter
|
||||||
# You can override MegaLinter flavor used to have faster performances
|
# You can override MegaLinter flavor used to have faster performances
|
||||||
# More info at https://megalinter.io/latest/flavors/
|
# More info at https://megalinter.io/latest/flavors/
|
||||||
uses: oxsecurity/megalinter/flavors/cupcake@5a91fb06c83d0e69fbd23756d47438aa723b4a5a # v8.7.0
|
uses: oxsecurity/megalinter/flavors/cupcake@e08c2b05e3dbc40af4c23f41172ef1e068a7d651 # v8.8.0
|
||||||
id: ml
|
id: ml
|
||||||
|
|
||||||
# All available variables are described in documentation
|
# All available variables are described in documentation
|
||||||
|
|||||||
Reference in New Issue
Block a user