Skip to content

Commit a31c5c7

Browse files
authored
Merge pull request #64 from fullstack-devops/bugfix/workflows-assets
fix workflow assets
2 parents 2207662 + 221382d commit a31c5c7

File tree

4 files changed

+11
-22
lines changed

4 files changed

+11
-22
lines changed

.github/workflows/Release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ jobs:
9191
path: out/
9292
key: awesome-ci-${{ github.sha }}
9393

94+
- name: list generated artifacts
95+
working-directory: out
96+
run: ls -la
97+
9498
- name: Publish Release
9599
run: awesome-ci release publish -releaseid "$ACI_RELEASE_ID" -assets "file=out/$ARTIFACT1,file=out/$ARTIFACT2"
96100
env:

.github/workflows/branchPR.yaml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,9 @@ on:
55

66
jobs:
77
generate_infos:
8-
runs-on: ubuntu-latest
9-
outputs:
10-
version: ${{ steps.tag.outputs.version }}
11-
pr: ${{ steps.tag.outputs.pr }}
12-
steps:
13-
- name: Check out the repo
14-
uses: actions/checkout@v2
15-
- name: Setup awesome-ci
16-
uses: fullstack-devops/awesome-ci-action@main
17-
18-
- name: collect infos
19-
run: awesome-ci pr info -number ${{ github.event.pull_request.number }}
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
- name: export infos
23-
id: tag
24-
shell: bash
25-
run: |
26-
echo "::set-output name=version::$ACI_VERSION"
27-
echo "::set-output name=pr::$ACI_PR"
8+
uses: fullstack-devops/actions/.github/workflows/generate-build-infos.yml@main
9+
secrets:
10+
token: ${{ secrets.GITHUB_TOKEN }}
2811

2912
build:
3013
runs-on: ubuntu-latest

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
# vendor/
1616
out
1717
*.env
18-
awesome-ci
18+
awesome-ci
19+
tests/github_env

tests/github_env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ ACI_VERSION=0.7.7
88
ACI_LATEST_VERSION=0.7.6
99
ACI_OWNER=fullstack-devops
1010
ACI_REPO=awesome-ci
11-
ACI_RELEASE_ID=57778494
11+
ACI_RELEASE_ID=58283687
1212
ACI_ARTIFACT_0_URL=https://github.com/eksrha/playground/releases/download/2.0.0/awesome-ci
13+
ACI_ARTIFACT_1_URL=https://github.com/eksrha/playground/releases/download/4.0.0/awesome-ci

0 commit comments

Comments
 (0)