Skip to content

Commit f25dccf

Browse files
committed
Update workflows
1 parent 648b255 commit f25dccf

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

.github/workflows/on-api-release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ jobs:
6262
${{env.AWSL_SRC_ZIP}}
6363
${{env.AWSL_LAYER_ZIP}}
6464
65-
# - name: dispatch "infrastructure-lambda-api"
66-
# uses: peter-evans/repository-dispatch@v1
67-
# with:
68-
# token: ${{ env.GITHUB_PUSH_TOKEN }}
69-
# repository: relaton/infrastructure-lambda-api
70-
# event-type: ${{ github.repository }}
71-
# client-payload: >-
72-
# {
73-
# "workflow": "on-api-release.yml",
74-
# "api_tag_name": "${{env.RELEASE_TAG_NAME}}"
75-
# }
65+
- name: dispatch "infrastructure-lambda-api"
66+
uses: peter-evans/repository-dispatch@v1
67+
with:
68+
token: ${{ env.GITHUB_PUSH_TOKEN }}
69+
repository: relaton/infrastructure-lambda-api
70+
event-type: ${{ github.repository }}
71+
client-payload: >-
72+
{
73+
"workflow": "on-api-release.yml",
74+
"api_tag_name": "${{env.RELEASE_TAG_NAME}}"
75+
}

.github/workflows/on-interscript-release.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,29 @@ on:
66

77
env:
88
GITHUB_PUSH_TOKEN: ${{ secrets.INTERSCRIPT_CI_PAT }}
9-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109

1110
jobs:
1211
create-release:
1312
runs-on: ubuntu-latest
1413
if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
1514
steps:
16-
- run: echo "disabled for now"
17-
# - uses: actions/checkout@v1
15+
# - run: echo "disabled for now"
16+
- uses: actions/checkout@v1
1817

19-
# - name: Setup env-vars
20-
# run: |
21-
# REF="${{ github.event.client_payload.ref }}"
22-
# echo "INTERSCRIPT_VERSION=${REF#refs/*/v}" >> $GITHUB_ENV
23-
#
24-
# - name: Create API Release
25-
# uses: actions/create-release@v1
26-
# env:
27-
# GITHUB_TOKEN: ${{env.GITHUB_PUSH_TOKEN}}
28-
# with:
29-
# tag_name: v${{env.INTERSCRIPT_VERSION}}
18+
- name: Setup env-vars
19+
run: |
20+
REF="${{ github.event.client_payload.ref }}"
21+
INTERSCRIPT_VERSION=${REF#refs/*/v}
22+
echo "INTERSCRIPT_VERSION=$INTERSCRIPT_VERSION" >> $GITHUB_ENV
23+
echo "API_TAG_NAME=$INTERSCRIPT_VERSION" >> $GITHUB_ENV
24+
25+
- name: Create API Release
26+
uses: actions/create-release@v1
27+
with:
28+
token: ${{ env.GITHUB_PUSH_TOKEN }}
29+
tag_name: v${{env.API_TAG_NAME}}
3030
# release_name: Release v${{env.INTERSCRIPT_VERSION}}
3131
# body: Auto release API v${{env.INTERSCRIPT_VERSION}} by @interscript-ci
32-
# draft: false
33-
# prerelease: false
32+
body: "#release-by-ci for Interscript Gem v${{env.INTERSCRIPT_VERSION}}"
33+
draft: false
34+
prerelease: false

0 commit comments

Comments
 (0)