Skip to content

Commit

Permalink
Merge pull request #79 from refinedmods/chore/GH-78/actions
Browse files Browse the repository at this point in the history
chore: update github action versions
  • Loading branch information
raoulvdberge authored Dec 25, 2023
2 parents ccd3e6d + 743967f commit dd2f5b6
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-java/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK 17
uses: actions/setup-java@v3.9.0
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
echo "RELEASE_VERSION=${{ inputs.version }}" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup Java
Expand All @@ -46,7 +46,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Publish test report
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
Expand All @@ -61,7 +61,7 @@ jobs:
run: ./gradlew pitest
- name: Upload build artifacts
if: ${{ runner.os == 'Linux' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: '**/build/libs/'
6 changes: 3 additions & 3 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GITFLOW_PUSH_TOKEN }}
- name: Get latest version from changelog
Expand All @@ -56,7 +56,7 @@ jobs:
run: |
echo "VERSION=${{ github.event.inputs.version-number-override }}" >> $GITHUB_ENV
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@1.3.0
uses: thomaseizinger/keep-a-changelog-new-release@ec0871fec381db64ab389886ffe8e6fc2b661e2c
with:
version: ${{ env.VERSION }}
tag: v${{ env.VERSION }}
Expand All @@ -69,7 +69,7 @@ jobs:
new_branch: 'release/${{ env.VERSION }}'
push: true
- name: Create pull request for release
uses: thomaseizinger/create-pull-request@1.3.0
uses: thomaseizinger/create-pull-request@52baa147b387effeeb9cf04e121227dbfb74994e
env:
GITHUB_TOKEN: ${{ secrets.GITFLOW_PUSH_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-for-unsupported-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
unsupported-labeler:
runs-on: ubuntu-latest
steps:
- uses: dessant/support-requests@v3
- uses: dessant/support-requests@v4
with:
github-token: ${{ github.token }}
support-label: 'unsupported'
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
version: ${{ env.RELEASE_VERSION }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Extract version from release branch name
if: startsWith(github.event.pull_request.head.ref, 'release/')
run: |
Expand All @@ -61,10 +61,10 @@ jobs:
changelog: ${{ steps.changelog_reader.outputs.changes }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Extract changelog
id: changelog_reader
uses: mindsers/changelog-reader-action@v2.2.2
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ needs.extract-version-number.outputs.version }}
path: ./CHANGELOG.md
Expand All @@ -87,7 +87,7 @@ jobs:
RELEASE_VERSION: ${{ needs.extract-version-number.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: refinedmods/refinedarchitect/.github/actions/setup-java@develop
- name: Publish to Maven
Expand All @@ -106,13 +106,13 @@ jobs:
RELEASE_VERSION: ${{ needs.extract-version-number.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: refinedmods/refinedarchitect/.github/actions/setup-java@develop
- name: Build documentation
run: ./gradlew allJavadoc
- name: Publish documentation
uses: JamesIves/github-pages-deploy-action@v4.4.1
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/docs/javadoc
Expand All @@ -128,7 +128,7 @@ jobs:
release-url: ${{ steps.gh_release.outputs.url }}
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: Artifacts
- name: Deploy to GitHub Releases
Expand All @@ -153,7 +153,7 @@ jobs:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: refinedmods/refinedarchitect/.github/actions/setup-java@develop
- name: Deploy to CurseForge
Expand All @@ -170,7 +170,7 @@ jobs:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: refinedmods/refinedarchitect/.github/actions/setup-java@develop
- name: Deploy to Modrinth
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
if: ${{ inputs.announce == true }}
steps:
- name: Announce to Mastodon
uses: rzr/fediverse-action@master
uses: rzr/fediverse-action@8506cb8a3052fd34b0d93a244888a81c233abf88
with:
access-token: ${{ secrets.MASTODON_TOKEN }}
host: 'anvil.social'
Expand All @@ -213,7 +213,7 @@ jobs:
(startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix/'))
steps:
- name: Create PR for merging main back into develop
uses: thomaseizinger/create-pull-request@1.0.0
uses: thomaseizinger/create-pull-request@52baa147b387effeeb9cf04e121227dbfb74994e
env:
GITHUB_TOKEN: ${{ secrets.GITFLOW_PUSH_TOKEN }}
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/resolved-issue-locking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
- uses: dessant/lock-threads@v5
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '30'
pr-lock-inactive-days: '30'
issue-inactive-days: '30'
pr-inactive-days: '30'
4 changes: 2 additions & 2 deletions .github/workflows/validate-branch-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
steps:
- name: Validate if branch name is valid
if: (!startsWith(github.event.pull_request.head.ref, 'release/')) && (!startsWith(github.event.pull_request.head.ref, 'hotfix/'))
uses: deepakputhraya/action-branch-name@master
uses: deepakputhraya/action-branch-name@5f1cc199284b75145ec2d13434422e6987cf6af8
with:
regex: '^([a-z])+\/GH-\d*\/([a-z-])+$'
allowed_prefixes: 'build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test'
Expand All @@ -15,7 +15,7 @@ jobs:
max_length: 50
- name: Validate if release or hotfix branch name is valid
if: startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix/')
uses: deepakputhraya/action-branch-name@master
uses: deepakputhraya/action-branch-name@5f1cc199284b75145ec2d13434422e6987cf6af8
with:
regex: '^([a-z])+\/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'
allowed_prefixes: 'release,hotfix'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Validate if changelog is valid
uses: mindsers/changelog-reader-action@v2.2.2
uses: mindsers/changelog-reader-action@v2
with:
path: ./CHANGELOG.md
validation_level: ${{ inputs.validation-level }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-commit-messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Upgraded GitHub Actions versions.

## [0.9.1] - 2023-10-31

### Fixed
Expand Down

0 comments on commit dd2f5b6

Please sign in to comment.