Skip to content

Commit 1e63d57

Browse files
authored
Merge pull request #23 from GrantBirki/updates
Node and Actions updates
2 parents d5cdf02 + cec2296 commit 1e63d57

File tree

9 files changed

+5642
-11707
lines changed

9 files changed

+5642
-11707
lines changed

.github/workflows/acceptance.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: acceptance
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
10+
jobs:
11+
acceptance:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# if on pull request
17+
- uses: ./
18+
if: github.event_name == 'pull_request'
19+
with:
20+
file: demo/acceptance.md
21+
vars: |
22+
sha: ${{ github.sha }}
23+
environment: production
24+
app: cool-app

.github/workflows/package-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
id: diff
4040

4141
# If index.js was different than expected, upload the expected version as an artifact
42-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # pin@v3.1.2
42+
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # pin@v4.3.1
4343
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
4444
with:
4545
name: dist

demo/acceptance.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Acceptance Test
2+
3+
This comment is from the acceptance test. If you are seeing this, it means the acceptance test has passed! 🎉
4+
5+
**{{ app }}** has been successfully deployed to **{{ environment }}**
6+
7+
- SHA: `{{ sha }}`

demo/sample-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
# It is required to checkout the repo if using the 'file:' param to read a file for template rendering
19-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3.0.2
19+
- uses: actions/checkout@v4
2020

2121
# Add a comment to the issue or PR
2222
- uses: GrantBirki/comment@vX.X.X

0 commit comments

Comments
 (0)