Ver Fonte

Merge pull request #1000 from PrivateBin/set-output-deprecation

handle github actions deprecation warnings
El RIDO há 3 anos atrás
pai
commit
d5104a1d63
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      .github/workflows/tests.yml

+ 2 - 3
.github/workflows/tests.yml

@@ -65,14 +65,13 @@ jobs:
       
       
     - name: Get composer cache directory
     - name: Get composer cache directory
       id: composer-cache
       id: composer-cache
-      run: echo "::set-output name=dir::$(composer config cache-files-dir)"
+      run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
     
     
     # http://man7.org/linux/man-pages/man1/date.1.html
     # http://man7.org/linux/man-pages/man1/date.1.html
     # https://github.com/actions/cache#creating-a-cache-key
     # https://github.com/actions/cache#creating-a-cache-key
     - name: Get Date
     - name: Get Date
       id: get-date
       id: get-date
-      run: |
-        echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
+      run: echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
       shell: bash
       shell: bash
     
     
     - name: Cache dependencies
     - name: Cache dependencies