Skip to content

Commit

Permalink
ci: bumped action versions and new issue welcome
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Oct 19, 2022
1 parent fb01740 commit 66aa79b
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 37 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-pr-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
steps:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

# Install Volta to enforce proper node and package manager versions
- name: 'Install Volta'
uses: volta-cli/action@v1
uses: volta-cli/action@v4

# Cache node_modules to speed up the process
- name: 'Restore node_modules cache'
id: cache-npm
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: node_modules
key: npm-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -50,7 +50,7 @@ jobs:

# Upload code coverage data
- name: 'Upload code coverage for LWC to Codecov.io'
uses: codecov/codecov-action@v2.0.2
uses: codecov/codecov-action@v3
with:
flags: LWC

Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
# Trigger packaging pre-release PR workflow
- name: 'Trigger packaging pre-release PR workflow if needed'
uses: peter-evans/repository-dispatch@v1.1.0
uses: peter-evans/repository-dispatch@v2
if: ${{ steps.checkForChanges.outputs.hasChanges == 'true' }}
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
steps:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

# Install Volta to enforce proper node and package manager versions
- name: 'Install Volta'
uses: volta-cli/action@v1
uses: volta-cli/action@v4

# Cache node_modules to speed up the process
- name: 'Restore node_modules cache'
id: cache-npm
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: node_modules
key: npm-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -65,7 +65,7 @@ jobs:

# Upload code coverage data
- name: 'Upload code coverage for LWC to Codecov.io'
uses: codecov/codecov-action@v2.0.2
uses: codecov/codecov-action@v3
with:
flags: LWC

Expand All @@ -83,7 +83,7 @@ jobs:
steps:
- name: 'Fetch Dependabot metadata'
id: dependabot
uses: dependabot/fetch-metadata@v1.3.1
uses: dependabot/fetch-metadata@v1

- name: 'Check auto merge conditions'
id: auto-merge
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
# Trigger packaging PR workflow
- name: 'Trigger packaging PR workflow if needed'
uses: peter-evans/repository-dispatch@v1.1.0
uses: peter-evans/repository-dispatch@v2
if: ${{ steps.checkForChanges.outputs.hasChanges == 'true' }}
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
steps:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

# Install Volta to enforce proper node and package manager versions
- name: 'Install Volta'
uses: volta-cli/action@v1
uses: volta-cli/action@v4

# Cache node_modules to speed up the process
- name: 'Restore node_modules cache'
id: cache-npm
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: node_modules
key: npm-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -54,7 +54,7 @@ jobs:

# Upload code coverage data
- name: 'Upload code coverage for LWC to Codecov.io'
uses: codecov/codecov-action@v2.0.2
uses: codecov/codecov-action@v3
with:
flags: LWC

Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
# Trigger packaging workflow if needed
- name: 'Trigger packaging workflow if needed'
uses: peter-evans/repository-dispatch@v1.1.0
uses: peter-evans/repository-dispatch@v2
if: ${{ steps.checkForChanges.outputs.hasChanges == 'true' }}
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codetour-watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: trailheadapps-Ubuntu
steps:
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: 'Watch CodeTour changes'
uses: pozil/codetour-watch@v1.4.0
uses: pozil/codetour-watch@v1.6.3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/new-issue-welcome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: New issue greeting

on:
issues:
types: [opened]

jobs:
comment:
runs-on: trailheadapps-Ubuntu
steps:
- uses: actions/github-script@v6
with:
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Thank you for posting this issue. 🙇🏼‍♂️<br/>We will come back to you shortly.'
})
2 changes: 1 addition & 1 deletion .github/workflows/packaging-pr-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

# Store secret for dev hub
- name: 'Populate auth file with DEVHUB_SFDX_URL secret'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

# Store secret for dev hub
- name: 'Populate auth file with DEVHUB_SFDX_URL secret'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref }}

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/welcome.yml

This file was deleted.

0 comments on commit 66aa79b

Please sign in to comment.