Skip to content

Commit

Permalink
Updates version of few actions to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
CalinL committed Feb 8, 2024
1 parent 9d7a60e commit e2c52c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions labs/lab05.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ References:
apply-label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand All @@ -130,7 +130,7 @@ jobs:
apply-label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
Expand Down
20 changes: 10 additions & 10 deletions labs/lab07.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ References:
run: |
echo 'Test upload artifact' > output.log
- name: Upload output file
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: output-log-file
path: output.log
```
4. In the `deploy-test` job, after the `checkout` action, copyt the following YAML content to use the `download-artifact` action
```YAML
- name: Download a single artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: output-log-file
```
Expand All @@ -53,7 +53,7 @@ References:
2. Edit the file and copy the following YAML content before the `Deploy to production` step:
```YAML
- name: Download artifact from build job
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: node-app
```
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
# Configure our node environment according to matrix
- name: Setup node ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
Expand All @@ -120,7 +120,7 @@ jobs:
run: |
echo 'Test upload artifact' > output.log
- name: Upload output file
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: output-log-file
path: output.log
Expand All @@ -139,7 +139,7 @@ jobs:
# Add here the download-artifact step
- name: Download a single artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: output-log-file
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
Expand All @@ -191,7 +191,7 @@ jobs:
echo npm run test --if-present
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: node-app
path: .
Expand All @@ -209,7 +209,7 @@ jobs:
# Add here the download-artifact step
- name: Download artifact from build job
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: node-app
Expand All @@ -219,7 +219,7 @@ jobs:
- name: 'Deploy to Azure WebApp'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
continue-on-error: true
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
Expand Down

0 comments on commit e2c52c4

Please sign in to comment.