diff --git a/.github/workflows/create_nightly_release.yml b/.github/workflows/create_nightly_release.yml index 0733a349..a611c672 100644 --- a/.github/workflows/create_nightly_release.yml +++ b/.github/workflows/create_nightly_release.yml @@ -20,7 +20,7 @@ jobs: - name: check latest commit is less than a day id: should_run continue-on-error: true - run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false" + run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "should_run=false" >> $GITHUB_OUTPUT build: needs: check_date if: ${{ needs.check_date.outputs.should_run != 'false' }} @@ -28,10 +28,10 @@ jobs: steps: - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT - name: Get version date id: version_date - run: echo "::set-output name=date::n_$(date +'%y%m%d')" + run: echo "date=n_$(date +'%y%m%d')" >> $GITHUB_OUTPUT - name: Checkout uses: actions/checkout@master with: @@ -75,7 +75,7 @@ jobs: CHANGELOG="${CHANGELOG//'%'/'%25'}" CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - echo "::set-output name=content::$CHANGELOG" + echo "content=$CHANGELOG" >> $GITHUB_OUTPUT id: changelog - name: Create Release id: create_release diff --git a/.github/workflows/create_stable_release.yml b/.github/workflows/create_stable_release.yml index 48a9001f..a0f5bc41 100644 --- a/.github/workflows/create_stable_release.yml +++ b/.github/workflows/create_stable_release.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT - name: Checkout uses: actions/checkout@master with: @@ -26,10 +26,10 @@ jobs: git submodule update --init --recursive - name: Get version id: version - run: echo "::set-output name=version::$(cat .github/workflows/version.txt)" + run: echo "version=$(cat .github/workflows/version.txt)" >> $GITHUB_OUTPUT - name: Get past version id: past_version - run: echo "::set-output name=past_version::$(cat .github/workflows/past_version.txt)" + run: echo "past_version=$(cat .github/workflows/past_version.txt)" >> $GITHUB_OUTPUT - name: Build the Docker image run: docker build -t portapack-dev -f dockerfile-nogit . --tag my-image-name:$(date +%s) - name: Make build folder @@ -59,7 +59,7 @@ jobs: CHANGELOG="${CHANGELOG//'%'/'%25'}" CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" - echo "::set-output name=content::$CHANGELOG" + echo "content=$CHANGELOG" >> $GITHUB_OUTPUT id: changelog - name: Create Release id: create_release