Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HYwooo authored Jan 21, 2025
0 parents commit e15ffd6
Show file tree
Hide file tree
Showing 10 changed files with 10,514 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/actionsflow-reset-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Reset Actionsflow Cache
on:
workflow_dispatch:
jobs:
reset:
runs-on: ubuntu-latest
name: Reset Actionsflow Cache
steps:
- uses: actions/checkout@v2
- name: Run Actionsflow Clean
uses: actionsflow/actionsflow-action@v1
with:
args: clean
json-secrets: ${{ toJSON(secrets) }}
25 changes: 25 additions & 0 deletions .github/workflows/actionsflow-update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update All Dependencies
on:
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout Branch
run: git checkout main
- name: Configure CI Git User
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
- name: Update
run: |
npm ci
npm update
- name: Git Push
run: |
git add package.json package-lock.json
git commit -m "chore: update dependencies"
git push
27 changes: 27 additions & 0 deletions .github/workflows/actionsflow-upgrade-actionsflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upgrade Local Actionsflow
on:
workflow_dispatch:
repository_dispatch:
types: [new_version_with_actionsflow]
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout Branch
run: git checkout main
- name: Configure CI Git User
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
- name: Update
run: |
npm ci
npm update actionsflow
- name: Git Push
run: |
git add package.json package-lock.json
git commit -m "chore: upgrade actionsflow dependencies"
git push
39 changes: 39 additions & 0 deletions .github/workflows/actionsflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Actionsflow
on:
# schedule:
# - cron: "*/15 * * * *"
push:
branches:
- main
repository_dispatch:
workflow_dispatch:
inputs:
include:
description: "--include: workflow file filter, you can use glob format to filter your workflows, the default value is empty value, means no filter will be using"
required: false
default: ""
force:
description: "--force: whether force to run workflow, true or false"
required: false
default: "false"
verbose:
description: "--verbose: debug workflow, true or false"
required: false
default: "false"
jobs:
run:
runs-on: ubuntu-latest
name: Run
concurrency: actionsflow
steps:
- uses: actions/checkout@v3
- name: Run Actionsflow
uses: actionsflow/[email protected]
with:
args: "build --include ${{ github.event.inputs.include || ''}} -f ${{github.event.inputs.force=='true' && 'true' || 'false'}} --verbose ${{github.event.inputs.verbose=='true' && 'true' || 'false'}}"
json-secrets: ${{ toJSON(secrets) }}
json-github: ${{ toJSON(github) }}
- name: Setup act
uses: actionsflow/[email protected]
- name: Run act
run: act --workflows ./dist/workflows --secret-file ./dist/.secrets --eventpath ./dist/event.json --env-file ./dist/.env -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
Loading

0 comments on commit e15ffd6

Please sign in to comment.