mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-28 11:23:03 +01:00
Bumps the gha-minor group with 3 updates: [step-security/harden-runner](https://github.com/step-security/harden-runner), [actions/create-github-app-token](https://github.com/actions/create-github-app-token) and [ossf/scorecard-action](https://github.com/ossf/scorecard-action). Updates `step-security/harden-runner` from 2.22.4 to 2.23.0 - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/1d88384fd173af6ecb012dfd0264a306b711241a...aebdcf6156ab6691adf63218240e476564a1ed4c) Updates `actions/create-github-app-token` from 3.3.0 to 3.4.0 - [Release notes](https://github.com/actions/create-github-app-token/releases) - [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/create-github-app-token/compare/64ab729a6294000f5aa4a4bc0b73d1f32bc45510...f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc) Updates `ossf/scorecard-action` from 2.5.0 to 2.6.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/fa7117db83c52d787ae5a89f350999701505d78e...23f22cd43608bae7a1f1fa2603d7314dee9538a5) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.23.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gha-minor - dependency-name: actions/create-github-app-token dependency-version: 3.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gha-minor - dependency-name: ossf/scorecard-action dependency-version: 2.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gha-minor ... Signed-off-by: dependabot[bot] <support@github.com>
67 lines
2.0 KiB
YAML
67 lines
2.0 KiB
YAML
name: Test and Deploy installer
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
paths:
|
|
- 'tools/install.sh'
|
|
- '.github/workflows/installer/**'
|
|
- '.github/workflows/installer.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
contents: read # to checkout
|
|
|
|
jobs:
|
|
test:
|
|
name: Test installer
|
|
if: github.repository == 'ohmyzsh/ohmyzsh'
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Set up git repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Install zsh
|
|
if: runner.os == 'Linux'
|
|
run: sudo apt-get update; sudo apt-get install zsh
|
|
- name: Test installer
|
|
run: sh ./tools/install.sh
|
|
|
|
deploy:
|
|
name: Deploy installer in install.ohmyz.sh
|
|
if: github.ref == 'refs/heads/master'
|
|
runs-on: ubuntu-latest
|
|
environment: vercel
|
|
needs:
|
|
- test
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Install Vercel CLI
|
|
run: npm install -g vercel
|
|
- name: Setup project and deploy
|
|
env:
|
|
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
|
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
|
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
|
run: |
|
|
cp tools/install.sh .github/workflows/installer/install.sh
|
|
cd .github/workflows/installer
|
|
vc deploy --prod -t "$VERCEL_TOKEN"
|