-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
30 lines (28 loc) · 1.04 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: 'Purge cache existing in jsDelivr Network'
author: 'PiQuark6046 and contributors'
description: 'Clone your GitHub repo into jsDelivr Network to enhance transmission speed'
inputs:
branches:
description: 'The your branches that you want to purge cache existing in jsDelivr'
required: false
default: ''
runs:
using: 'composite'
steps:
- name: Install npm packages
run: |
npm i
shell: bash
working-directory: ${{ github.action_path }}
- name: Run program
env:
GITHUB_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
BRANCHE: ${{ inputs.branches }}
WORKFLOWREF: ${{ github.workflow_ref }}
CI_WORKSPACE_PATH: ${{ github.workspace }}
CI_ACTION_PATH: ${{ github.action_path }}
run: |
npm run ci -- --gh-token "$GITHUB_TOKEN" --repo "$REPO" --workflow-ref "$WORKFLOWREF" --branch "$BRANCHE" --ci-workspace-path "$CI_WORKSPACE_PATH" --ci-action-path "$CI_ACTION_PATH"
shell: bash
working-directory: ${{ github.action_path }}