-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed logMessage and status validation - Added workflow to test
- Loading branch information
1 parent
d388840
commit a7d9df7
Showing
5 changed files
with
57 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Port Update Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- PORT-10327-bug-cannot-update-certain-fields-from-github-action # Trigger only for this branch | ||
workflow_dispatch: # Allows manual triggering from the Actions tab | ||
|
||
jobs: | ||
test-port-update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout the code | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# Step 2: Set up Node.js environment | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
# Step 3: Install dependencies | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
# Step 4: Run the Port GitHub Action test | ||
- name: Run Port Action for Update Run | ||
uses: port-labs/port-github-action@v1 | ||
with: | ||
clientId: ${{ secrets.PORT_CLIENT_ID }} # Set these secrets in GitHub | ||
clientSecret: ${{ secrets.PORT_CLIENT_SECRET }} | ||
baseUrl: 'https://api.getport.io' | ||
runId: 'r_QOz6WoOB1Q2lmhZZ' # Test run ID | ||
status: 'SUCCESS' | ||
statusLabel: 'Completed successfully' | ||
logMessage: 'Test log message' | ||
link: 'https://github.com/port-labs/port-github-action' | ||
summary: 'This is a summary' | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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