-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 865 Bytes
/
test.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
on: [push]
env:
# IMAGE_NAME 用于 程序名
GITHUB_REPO: ghcr.io/${{ github.repository }}
AWS_REGISTRY: 580167004110.dkr.ecr.ap-southeast-1.amazonaws.com
SECRETS_GITHUB_TOKEN: ${{ secrets.SECRETS_GITHUB_TOKEN }}
AWS_ACCOUNT: 580167004110
jobs:
test-public-repo:
runs-on: ubuntu-latest
name: Get the sha from public repo
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v2
- name: check repo node
run: |
pwd
ls ./
- name: checkout action repo
uses: actions/checkout@v2
with:
repository: davema-clan/github-action-tmp
token: ${{ secrets.SECRETS_GITHUB_TOKEN }}
path: ./github-action-tmp
ref: prod
- name: check repo
run: |
pwd
ls ./
- name: Action Test
id: test
uses: ./github-action-tmp