-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.08 KB
/
shell.yml
File metadata and controls
34 lines (30 loc) · 1.08 KB
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
name: Test Custom action
on: [pull_request]
env:
LOCAL_ENV: 'Workflow local env'
CUSTOM_TEST_SECRETS: ${{ secrets.CUSTOM_TEST_SECRETS }}
jobs:
run-custom-action:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: expose bucket tags (get from aws)
id: exposeBucketTags
run: |
bucketTagsContent=$(cat ./bucket.json)
bucketTagsContent="${bucketTagsContent//'%'/'%25'}"
bucketTagsContent="${bucketTagsContent//$'\n'/'%0A'}"
bucketTagsContent="${bucketTagsContent//$'\r'/'%0D'}"
echo "::set-output name=bucketTags::$bucketTagsContent"
- run: |
echo "${{steps.exposeBucketTags.outputs.bucketTags}}"
- name: Execute custom action
uses: ./.github/actions/version
id: custom-action
env:
param: ${{steps.exposeBucketTags.outputs.bucketTags}}
with:
param1: ${{env.param}}
- name: Print custom action result
run: echo "Custom action result ${{ steps.custom-action.outputs.version }} "