Skip to content

Commit

Permalink
use workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Jun 18, 2024
1 parent cf45ed9 commit f53e8d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- name: Install dependencies
# - name: Repository Dispatch
# uses: peter-evans/repository-dispatch@v3
# with:
# token: ${{ secrets.DEPLOY_PAT }}
# repository: pretagov/deploy-helm
# event-type: deploy
- name: Workflow Dispatch
run: |
apt-get -y update && apt-get -y install git make
pnpm dlx mrs-developer missdev --no-config --fetch-https \&& pnpm install --frozen-lockfile
- name: Test build
run: |
pnpm run build
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DEPLOY_PAT }}
repository: pretagov/deploy-helm
event-type: deploy
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.DEPLOY_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://github.com/gitapi/repos/pretagov/deploy-helm/actions/workflows/deploy-to-k8s/dispatches \
-d '{"ref":"main","inputs":{}}'
9 changes: 0 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,17 @@ jobs:
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# - name: Install dependencies
# run: |
# apt-get -y update && apt-get -y install git make
# pnpm dlx mrs-developer missdev --no-config --fetch-https \&& pnpm install --frozen-lockfile
- name: Install dependencies
run: |
pnpm dlx mrs-developer missdev --no-config --fetch-https
# pnpm install --frozen-lockfile
- name: Check pnpm lockfile consistency
run: |
pnpm install --lockfile-only
# - name: Test build
# run: |
# pnpm run build

0 comments on commit f53e8d5

Please sign in to comment.