Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/build-and-review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
# path filtering, a status check will not be created and we won't be able to merge the PR
# without disabling that requirement. If we have a status check that is always produced,
# we can also use that to require all branches be up to date before they are merged.
permissions:
contents: read
pull-requests: write

jobs:
build-and-review-pr:
Expand All @@ -34,7 +37,7 @@ jobs:
# This workflow assumes:
# - The main README.md is at the root of the repo
# - The README contains a contribution guidelines and usage examples section
uses: im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v1
uses: im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v2
with:
action-name: ${{ github.repository }}
default-branch: main
Expand Down Expand Up @@ -76,7 +79,7 @@ jobs:
- name: '-------------------------------------------------------------------------------------------------------'
run: echo "WORKFLOW_CONCLUSION=''" >> $GITHUB_ENV

- uses: actions/checkout@v3
- uses: actions/checkout@v6

- name: When an unknown conclusion is present
uses: ./
Expand Down Expand Up @@ -112,7 +115,7 @@ jobs:
WORKFLOW_CONCLUSION: ''

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

#--------------------------------------
# OUTCOME INCLUDES SUCCESS
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/increment-version-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ on:
# if this action should be incremented and if new tags should be pushed to the repo based
# on the same criteria used in the build-and-review-pr.yml workflow.

permissions:
contents: write

jobs:
increment-version:
uses: im-open/.github/.github/workflows/reusable-increment-version-on-merge.yml@v1
uses: im-open/.github/.github/workflows/reusable-increment-version-on-merge.yml@v2
with:
default-branch: main

Expand Down
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Process dotnet test results and create a status check
id: test_check
# You may also reference just the major or major.minor version
uses: im-open/process-dotnet-test-results@v2.2.3
uses: im-open/process-dotnet-test-results@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -83,7 +83,7 @@ jobs:
needs: [test, auto-deploy-to-dev]
if: always()
steps:
- uses: im-open/workflow-conclusion@v2.2.5
- uses: im-open/workflow-conclusion@v3.0.0
id: conclusion
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -96,14 +96,12 @@ jobs:
]

# Use the workflow conclusion below
- name: Update Deployment Board
uses: im-open/update-deployment-board@v1.5.1
with:
github-token: ${{ secrets.GITHUB_TOKEN}}
environment: ${{ github.event.inputs.environment }}
board-number: 1
ref: ${{ github.event.inputs.branch-tag-sha }}
deploy-status: ${{ env.WORKFLOW_CONCLUSION }} # can also use ${{ steps.conclusion.workflow_conclusion }}
- name: Construct PR Comment
id: comment
uses: actions/github-script@v9
with:
script: |
const conclusion = '${{ steps.conclusion.outputs.workflow_conclusion }}';
```

## Contributing
Expand Down
10 changes: 7 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJS = (cb, mod) =>
function __require() {
return (
mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports
);
try {
return (
mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports
);
} catch (e) {
throw ((mod = 0), e);
}
};
var __copyProps = (to, from, except, desc) => {
if ((from && typeof from === 'object') || typeof from === 'function') {
Expand Down
Loading
Loading