Merge pull request #3878 from arunsathiya/master

Use GITHUB_OUTPUT envvar instead of set-output command as the latter is deprecated
This commit is contained in:
mergify[bot] 2024-01-08 23:30:02 +00:00 committed by GitHub
commit 75758b07f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

@ -3,10 +3,10 @@ name: Update API docs
on: on:
# Trigger on push to branches `master` and `3.5`. # Trigger on push to branches `master` and `3.5`.
push: push:
branches: [ master, 3.5 ] branches: [master, 3.5]
# Trigger on pull request events for PRs that have `master` as their target branch # Trigger on pull request events for PRs that have `master` as their target branch
pull_request: pull_request:
branches: [ master ] branches: [master]
# Allow running the workflow manually # Allow running the workflow manually
workflow_dispatch: workflow_dispatch:
@ -33,7 +33,7 @@ jobs:
# This way, packages will be checked for updates once every week. # This way, packages will be checked for updates once every week.
- name: Get Date - name: Get Date
id: get-date id: get-date
run: echo "::set-output name=date::$(/bin/date -u "+%Y%W")" run: echo "date=$(/bin/date -u "+%Y%W")" >> $GITHUB_OUTPUT
- name: Cache apt packages - name: Cache apt packages
id: cache-apt id: cache-apt
@ -156,5 +156,4 @@ jobs:
APIDOC_TOKEN: ${{ secrets.AWESOME_ROBOT_TOKEN || github.token }} APIDOC_TOKEN: ${{ secrets.AWESOME_ROBOT_TOKEN || github.token }}
GITHUB_COMPARE: ${{ github.event.compare }} GITHUB_COMPARE: ${{ github.event.compare }}
run: .github/scripts/apidoc.sh run: .github/scripts/apidoc.sh
# vim: filetype=yaml:expandtab:shiftwidth=2:tabstop=2 # vim: filetype=yaml:expandtab:shiftwidth=2:tabstop=2

View File

@ -3,10 +3,10 @@ name: Build & Test
on: on:
# Trigger on push to branches `master` and `3.5`. # Trigger on push to branches `master` and `3.5`.
push: push:
branches: [ master, 3.5 ] branches: [master, 3.5]
# Trigger on pull request events for PRs that have `master` as their target branch # Trigger on pull request events for PRs that have `master` as their target branch
pull_request: pull_request:
branches: [ master ] branches: [master]
# Allow running the workflow manually # Allow running the workflow manually
workflow_dispatch: workflow_dispatch:
@ -75,15 +75,15 @@ jobs:
LUAINCLUDE: ${{ matrix.lua_include || format('/usr/include/lua{0}', matrix.lua_version) }} LUAINCLUDE: ${{ matrix.lua_include || format('/usr/include/lua{0}', matrix.lua_version) }}
LUALIBRARY: ${{ matrix.lua_library || format('/usr/lib/x86_64-linux-gnu/liblua{0}.so', matrix.lua_version) }} LUALIBRARY: ${{ matrix.lua_library || format('/usr/lib/x86_64-linux-gnu/liblua{0}.so', matrix.lua_version) }}
TESTS_SCREEN_SIZE: ${{ matrix.tests_screen_size }} TESTS_SCREEN_SIZE: ${{ matrix.tests_screen_size }}
TEST_TIMEOUT: '100' TEST_TIMEOUT: "100"
CI: 'true' CI: "true"
steps: steps:
# Create a cache invalidation key based on the current year + week. # Create a cache invalidation key based on the current year + week.
# This way, packages will be checked for updates once every week. # This way, packages will be checked for updates once every week.
- name: Get Date - name: Get Date
id: get-date id: get-date
run: echo "::set-output name=date::$(/bin/date -u "+%Y%W")" run: echo "date=$(/bin/date -u "+%Y%W")" >> $GITHUB_OUTPUT
- name: Cache apt packages - name: Cache apt packages
id: cache-apt id: cache-apt