Skip to content

Commit

Permalink
ci: bump outdated actions (#4334)
Browse files Browse the repository at this point in the history
* ci: bump `actions/checkout` to v4

* ci: bump `mukunku/tag-exists-action` to 1.6.0

* ci: bump `mathieudutour/github-tag-action` to 6.2

* bump `mikepenz/release-changelog-builder-action` to 4.2.0

* ci: `actions/create-release` to `softprops/action-gh-release`

actions/create-release was archived and was causing node16 deprecation warning.

* ci: use `shogo82148/actions-upload-release-asset`

migrate `actions/upload-release-asset` -> `shogo82148/actions-upload-release-asset`

migrate deprecated workflow into working fork

* ci: bump `actions/setup-java` to 4.1.0
  • Loading branch information
scarf005 authored Mar 14, 2024
1 parent 260f348 commit 062cbbb
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up JDK 11 (android)
uses: actions/setup-java@v3
uses: actions/setup-java@v4.1.0
with:
java-version: "11"
distribution: "adopt"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: sudo apt-get install astyle

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
environment: github-pages
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install, build, and upload site
uses: withastro/action@v0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/i18n-extraction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
sudo apt-get install gettext python3-pip
sudo pip3 install polib luaparser
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check that translation template extraction works
run: lang/update_pot.sh
2 changes: 1 addition & 1 deletion .github/workflows/i18n-printf-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
sudo apt-get install python3-pip
sudo pip3 install polib
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Check printf format string in translations"
run: ./tools/check_po_printf_format.py
20 changes: 10 additions & 10 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,38 @@ jobs:
echo "release_name=Cataclysm-BN ${{ env.VERSION }}" >> $GITHUB_OUTPUT
- name: Check if there is existing git tag
id: tag_check
uses: mukunku/tag-exists-action@v1.4.0
uses: mukunku/tag-exists-action@v1.6.0
with:
tag: ${{ steps.generate_env_vars.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Push tag
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
uses: mathieudutour/github-tag-action@v6.2
if: ${{ steps.tag_check.outputs.exists == 'false' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.generate_env_vars.outputs.tag_name }}
tag_prefix: ""
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: git fetch origin tag ${{ steps.generate_env_vars.outputs.tag_name }} --no-tags
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v2.1.0
uses: mikepenz/release-changelog-builder-action@v4.2.0
with:
configuration: "changelog.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2.0.2
if: ${{ steps.tag_check.outputs.exists == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.generate_env_vars.outputs.tag_name }}
release_name: ${{ steps.generate_env_vars.outputs.release_name }}
name: ${{ steps.generate_env_vars.outputs.release_name }}
body: |
${{ steps.build_changelog.outputs.changelog }}
These are the outputs for the manually triggered build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
env:
ZSTD_CLEVEL: 17
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Create VERSION.TXT
shell: bash
run: |
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
mv CataclysmBN-${{ env.VERSION }}.dmg cbn-${{ matrix.artifact }}-${{ env.VERSION }}.dmg
- name: Set up JDK 11 (android)
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
uses: actions/setup-java@v3
uses: actions/setup-java@v4.1.0
with:
java-version: "11"
distribution: "adopt"
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
fi
- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
uses: shogo82148/actions-upload-release-asset@v1.7.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
steps:
- name: checkout repository
if: ${{ env.SKIP == 'false' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/msvc-full-features-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/msvc-full-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/msys2-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run: |
curl -sL https://github.com/transifex/cli/releases/download/v1.6.7/tx-linux-amd64.tar.gz | sudo tar zxvf - -C /usr/bin tx
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Get current date"
uses: nanzm/[email protected]
id: get-timestamp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-translation-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
sudo apt install python3-pip
sudo pip3 install polib luaparser
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Generate translation template"
run: |
lang/update_pot.sh
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
tag_name: ${{ steps.env_vars.outputs.tag_name }}
release_name: ${{ steps.env_vars.outputs.release_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: env_vars
run: |
TAG_NAME=$(date -u --iso-8601 --date='1 day ago')
Expand All @@ -42,30 +42,30 @@ jobs:
steps:
- name: Check if there is existing git tag
id: tag_check
uses: mukunku/tag-exists-action@v1.4.0
uses: mukunku/tag-exists-action@v1.6.0
with:
tag: ${{ needs.metadata.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Push tag
if: ${{ steps.tag_check.outputs.exists == 'false' }}
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ needs.metadata.outputs.tag_name }}
tag_prefix: ""

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: git fetch origin tag ${{ needs.metadata.outputs.tag_name }} --no-tags

- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v2.1.0
uses: mikepenz/release-changelog-builder-action@v4.2.0
with:
configuration: "changelog.json"
env:
Expand All @@ -74,12 +74,12 @@ jobs:
- name: Create release
if: ${{ steps.tag_check.outputs.exists == 'false' }}
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.metadata.outputs.tag_name }}
release_name: ${{ needs.metadata.outputs.release_name }}
name: ${{ needs.metadata.outputs.release_name }}
body: |
${{ steps.build_changelog.outputs.changelog }}
These are the outputs for the experimental build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
env:
ZSTD_CLEVEL: 17
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Create VERSION.TXT
shell: bash
run: |
Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:
- name: Set up JDK 11 (android)
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
uses: actions/setup-java@v3
uses: actions/setup-java@v4.1.0
with:
java-version: "11"
distribution: "adopt"
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
uses: shogo82148/actions-upload-release-asset@v1.7.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 062cbbb

Please sign in to comment.