Skip to content

Commit

Permalink
Update GitHub actions to the latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Apr 24, 2024
1 parent 7bb6c1f commit 57e61e3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addAssignees: author
runOnDraft: true
2 changes: 1 addition & 1 deletion .github/workflows/git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:

steps:
- name: Block Merge with Autosquash Commits
uses: xt0rted/block-autosquash-commits-action@v2.0.0
uses: xt0rted/block-autosquash-commits-action@v2.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 3 additions & 5 deletions .github/workflows/pull-request-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ name: Pull Request Meta

on:
pull_request:
types: [opened]
types: [ opened ]

jobs:
process_pr_meta:
runs-on: ubuntu-20.04
steps:
- name: Assign to author
uses: samspills/assign-pr-to-author@v1.0
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
uses: kentaro-m/auto-assign-action@v2.0.0 # Specify also the minor version because v2 does not exist

- name: Add labels
uses: TimonVS/pr-labeler-action@v3.1.0
uses: TimonVS/pr-labeler-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
version_changed: ${{ steps.check_package_version.outputs.changed }}
steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
Expand All @@ -31,7 +31,7 @@ jobs:

- name: Check package.json for version change
id: check_package_version
uses: EndBug/version-check@v2.1.0
uses: EndBug/version-check@v2

- name: Log when version changed
if: steps.check_package_version.outputs.changed == 'true'
Expand All @@ -42,7 +42,7 @@ jobs:
run: 'echo "No version change"'

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: assets
path: assets/built
Expand All @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Draft release on GitHub
uses: release-drafter/release-drafter@v5.20.0
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -65,14 +65,14 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# An existing release draft is published only if there is a version bump in `package.json`.
# Throws an error and breaks the job if called regardless. We check for version changes in the
# `build_and_test` job first so this job is skipped rather than exited with an error.
- name: Publish matching GitHub release draft
id: github_release
uses: JamesMGreene/node-draft-releaser@v1.1.2
uses: JamesMGreene/node-draft-releaser@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -90,16 +90,16 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: assets
path: assets/built

- name: Deploy Ghost theme
uses: TryGhost/action-deploy-theme@v1.5.0
uses: TryGhost/action-deploy-theme@v1
with:
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
node: [ 18, 20 ]
steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
Expand Down

0 comments on commit 57e61e3

Please sign in to comment.