-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved configuration parameter validation (#36)
* Added simple check, not starting with http:// or https:// * Update publish-rock.yml * Update build.yml * Update publish-rock.yml
- Loading branch information
1 parent
db757b7
commit 0250a5a
Showing
5 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
paths: | ||
- "*.rockspec" | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build_rock: | ||
|
@@ -19,14 +19,18 @@ jobs: | |
|
||
- name: luarocks pack | ||
run: luarocks pack $(find . -maxdepth 1 -name "kong-aws-request-signing-*.rockspec" -print | sed 's/.\///g' | sed 's/.rockspec//g' | sed 's/signing-/signing /g') | ||
|
||
|
||
- name: get version | ||
id: version | ||
run: echo "version=$(luarocks show aws-request-signing --mversion)" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Get token to commit | ||
id: get_token | ||
uses: peter-murray/[email protected] | ||
with: | ||
application_id: ${{ secrets.APP_GITHUB_100101_ID }} #Org app id | ||
application_private_key: ${{ secrets.APP_GITHUB_100101_PRIVATE_KEY }} #Org app secret | ||
|
||
- name: Commit the rock | ||
env: | ||
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} | ||
|
@@ -42,4 +46,11 @@ jobs: | |
--field content="$CONTENT" \ | ||
--field encoding="base64" \ | ||
--field branch="$DESTINATION_BRANCH" \ | ||
--field sha="$SHA" | ||
--field sha="$SHA" | ||
- name: Create a GitHub release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ steps.version.outputs.version }} | ||
name: Release ${{ steps.version.outputs.version }} | ||
token: ${{ steps.get_token.outputs.token }} |
2 changes: 1 addition & 1 deletion
2
kong-aws-request-signing-1.0.3-3.rockspec → kong-aws-request-signing-1.0.4-3.rockspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters