Skip to content

Commit

Permalink
Merge pull request #23 from GrantBirki/updates
Browse files Browse the repository at this point in the history
Node and Actions updates
  • Loading branch information
GrantBirki authored Apr 4, 2024
2 parents d5cdf02 + cec2296 commit 1e63d57
Show file tree
Hide file tree
Showing 9 changed files with 5,642 additions and 11,707 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: acceptance

on:
pull_request:

permissions:
contents: read
pull-requests: write

jobs:
acceptance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# if on pull request
- uses: ./
if: github.event_name == 'pull_request'
with:
file: demo/acceptance.md
vars: |
sha: ${{ github.sha }}
environment: production
app: cool-app
2 changes: 1 addition & 1 deletion .github/workflows/package-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # pin@v3.1.2
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # pin@v4.3.1
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
7 changes: 7 additions & 0 deletions demo/acceptance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Acceptance Test

This comment is from the acceptance test. If you are seeing this, it means the acceptance test has passed! 🎉

**{{ app }}** has been successfully deployed to **{{ environment }}**

- SHA: `{{ sha }}`
2 changes: 1 addition & 1 deletion demo/sample-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# It is required to checkout the repo if using the 'file:' param to read a file for template rendering
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # [email protected]
- uses: actions/checkout@v4

# Add a comment to the issue or PR
- uses: GrantBirki/[email protected]
Expand Down
Loading

0 comments on commit 1e63d57

Please sign in to comment.