Skip to content

Commit 5825796

Browse files
author
Roberto Sanchez
committed
changed the action repo
1 parent 8b6d571 commit 5825796

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/lambda_zip.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,19 @@ jobs:
1717
- name: Build Lambda Function
1818
run: |
1919
zip lambda.zip rolling-restart.py
20-
ls
2120
22-
- name: Get tag
23-
id: get_tag
24-
run: |
25-
echo ::set-output name=VTAG::$( echo $GITHUB_REF | cut -d / -f 3 )
21+
- name: Get release
22+
id: get_release
23+
uses: bruceadams/get-release@v1.2.2
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626

2727
- name: Upload lambda to assets
28-
id: upload-lambda-asset
29-
uses: AButler/upload-release-assets@v2.0
28+
uses: actions/upload-release-asset@v1.0.2
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3031
with:
31-
repo-token: ${{ secrets.GITHUB_TOKEN }}
32-
files: '*.zip'
33-
release-tag: ${{ steps.get_tag.outputs.VTAG }}
32+
upload_url: ${{ steps.get_release.outputs.upload_url }}
33+
asset_path: ./lambda.zip
34+
asset_name: lambda.zip
35+
asset_content_type: application/zip

0 commit comments

Comments
 (0)