mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 08:52:43 +08:00
chore: remove unsed files
This commit is contained in:
27
.github/actions/action.yml
vendored
27
.github/actions/action.yml
vendored
@@ -1,27 +0,0 @@
|
||||
name: "Hello World"
|
||||
description: "Greet someone"
|
||||
inputs:
|
||||
who-to-greet: # id of input
|
||||
description: "Who to greet"
|
||||
required: true
|
||||
default: "World"
|
||||
outputs:
|
||||
random-number:
|
||||
description: "Random number"
|
||||
value: ${{ steps.random-number-generator.outputs.random-id }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- run: echo Hello ${{ inputs.who-to-greet }}.
|
||||
shell: bash
|
||||
- id: random-number-generator
|
||||
run: echo "::set-output name=random-id::$(echo $RANDOM)"
|
||||
shell: bash
|
||||
- id: get-variable
|
||||
run: echo github.action_path is ${{github.action_path}}
|
||||
shell: bash
|
||||
- name: copy files
|
||||
run: cp ${{ github.action_path }}/module.ps1 . # share script to user
|
||||
shell: bash
|
||||
- run: ${{ github.action_path }}/goodbye.sh
|
||||
shell: bash
|
||||
1
.github/actions/goodbye.sh
vendored
1
.github/actions/goodbye.sh
vendored
@@ -1 +0,0 @@
|
||||
echo "Goodbye"
|
||||
11
.github/actions/module.ps1
vendored
11
.github/actions/module.ps1
vendored
@@ -1,11 +0,0 @@
|
||||
function Show-Calendar {
|
||||
Write-Host "output - Show-Calendar"
|
||||
}
|
||||
|
||||
function Show-Calendar2 {
|
||||
Write-Host "output - Show-Calendar2"
|
||||
}
|
||||
|
||||
function Show-Calendar3 {
|
||||
Write-Host "output - Show-Calendar3"
|
||||
}
|
||||
36
.github/workflows/shell.yml
vendored
36
.github/workflows/shell.yml
vendored
@@ -1,36 +0,0 @@
|
||||
name: shell-test
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
shell-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run a multi-line script
|
||||
run: |
|
||||
echo github.action_path is ${{github.action_path}}
|
||||
echo "Run a multi-line script"
|
||||
- id: foo
|
||||
uses: ./.github/actions
|
||||
with:
|
||||
who-to-greet: "Mona the Octocat"
|
||||
- run: echo random-number ${{ steps.foo.outputs.random-number }}
|
||||
shell: bash
|
||||
- run: ls -al
|
||||
shell: bash
|
||||
- name: show dir
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt install tree
|
||||
tree -al .
|
||||
- name: run pwsh
|
||||
shell: pwsh
|
||||
run: |
|
||||
. ./module.ps1
|
||||
Show-Calendar
|
||||
Show-Calendar3
|
||||
Show-Calendar2
|
||||
Reference in New Issue
Block a user