Skip to content

Commit

Permalink
chore(repo): update several github actions (#5751)
Browse files Browse the repository at this point in the history
Went over all actions and checked their release notes. Intentially left out one update, updated the rest. More coarsely pinned certain deps. I look forward to pinning deps by `sha` when we get around to using renovatebot

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
MarkMcCulloh authored Feb 21, 2024
1 parent 99c4461 commit e8a5f3a
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 31 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
bench-changed: ${{ fromJson(steps.turbo-diff.outputs.data)['hangar#bench'].changes }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}

Expand Down Expand Up @@ -102,10 +102,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}

Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- build
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download Dist Artifacts
uses: actions/download-artifact@v3
Expand All @@ -162,7 +162,7 @@ jobs:
path: dist

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}

Expand Down Expand Up @@ -221,10 +221,10 @@ jobs:
full_run: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}

Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
if: ${{ needs.build.outputs.console-changed == 'true' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'mergify/merge-queue/') }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download Dist Artifacts
uses: actions/download-artifact@v3
Expand All @@ -296,7 +296,7 @@ jobs:
path: dist

- name: Install flyctl
uses: superfly/flyctl-actions/setup-flyctl@1.4
uses: superfly/flyctl-actions/setup-flyctl@1.5
with:
version: ${{ env.FLY_VERSION }}

Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:
run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Publish NPM packages
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
env:
PACKAGE_VERSION: ${{ needs.build.outputs.version }}
with:
Expand Down Expand Up @@ -414,7 +414,7 @@ jobs:
dependencies: false

- name: Write Changelog
uses: DamianReeves/write-file-action@v1.2
uses: DamianReeves/write-file-action@v1.3
with:
path: "CHANGELOG.md"
contents: ${{ needs.build.outputs.changelog }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v6
- uses: actions/stale@v9
with:
days-before-pr-stale: 20
stale-issue-message: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete-console-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'mergify/merge-queue/') }}
steps:
- name: Install flyctl
uses: superfly/flyctl-actions/setup-flyctl@1.4
uses: superfly/flyctl-actions/setup-flyctl@1.5
with:
version: ${{env.FLY_VERSION}}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-backlogger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: "Add issue to backlog"
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
- uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/winglang/projects/2
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/matrix-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}

Expand All @@ -38,7 +38,7 @@ jobs:
TEST_OUTPUT_FOLDER=../../out npx update-matrix
- name: Create a PR
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
title: "chore(docs): compatibility matrix update"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- name: Download artifacts
id: download-artifacts
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
run_id: ${{ github.event.workflow_run.id }}
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
git config --global core.hooksPath /dev/null
- name: Update PR Branch
uses: actions/github-script@v6
uses: actions/github-script@v7
if: steps.download-artifacts.outputs.found_artifact == 'true'
with:
github-token: ${{ secrets.MUTATION_TOKEN }}
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Checkout Workflow Branch
if: steps.download-artifacts.outputs.found_artifact == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.MUTATION_TOKEN }}
ref: ${{ github.event.workflow_run.head_branch }}
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
git push origin HEAD:$HEAD_REF
- name: Add label to block auto merge
uses: actions/github-script@v6
uses: actions/github-script@v7
if: steps.download-artifacts.outputs.found_artifact == 'true'
with:
github-token: ${{ secrets.MUTATION_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tf-aws-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: test if is maintainer
uses: tspascoal/get-user-teams-membership@v2
uses: tspascoal/get-user-teams-membership@v3
id: testUserGroup
if: ${{ env.MANUAL == 'true' }}
with:
Expand All @@ -60,7 +60,7 @@ jobs:
echo "User ${{github.actor}} is not allowed to dispatch this action."
exit 1
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{env.REPO}}
ref: ${{env.REF}}
Expand Down Expand Up @@ -102,14 +102,14 @@ jobs:
name: ${{ matrix.test.name }} - ${{ matrix.target }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{env.REPO}}
ref: ${{env.REF}}

- name: Setup pnpm
if: ${{ env.MANUAL == 'true' }}
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}

Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
#################### install a remote wing version ########################
- name: Install winglang globally
if: ${{ env.LOCAL_BUILD == 'false' && env.MANUAL == 'false'}}
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
max_attempts: 3
retry_on: error
Expand All @@ -163,7 +163,7 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Execute wing test in matrix directory
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
env:
TF_LOG: info
TF_LOG_PATH: ${{ runner.workspace }}/terraform.log
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/08-guides/02-ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js v18
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit e8a5f3a

Please sign in to comment.