diff --git a/.github/workflows/delete-preview.yml b/.github/workflows/delete-preview.yml index 88dc705a..afd658af 100644 --- a/.github/workflows/delete-preview.yml +++ b/.github/workflows/delete-preview.yml @@ -18,7 +18,7 @@ jobs: # Check out current repository - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index be33dbfc..cb20ae80 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -20,7 +20,7 @@ jobs: steps: - name: checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login as jhudsl-robot run: | diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index e439ed9b..6d786f46 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -33,7 +33,7 @@ jobs: steps: - name: checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Verify Dockerfiles changed? uses: tj-actions/verify-changed-files@v8.8 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8ef48128..ac65fb4b 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -100,7 +100,7 @@ jobs: steps: - name: Checkout files - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -125,7 +125,7 @@ jobs: steps: - name: Checkout files - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -176,7 +176,7 @@ jobs: shell: bash - name: Find Comment - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v2 id: fc with: issue-number: ${{ github.event.pull_request.number }} @@ -199,7 +199,7 @@ jobs: - name: Create or update comment if: steps.commit.outputs.changes == 'true' - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} @@ -214,7 +214,7 @@ jobs: - name: Comment if no changes if: steps.commit.outputs.changes == 'false' - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} @@ -234,7 +234,7 @@ jobs: steps: - name: checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Verify Dockerfiles changed? uses: tj-actions/verify-changed-files@v8.8 diff --git a/.github/workflows/render-all.yml b/.github/workflows/render-all.yml index 1d9b1855..3780f310 100644 --- a/.github/workflows/render-all.yml +++ b/.github/workflows/render-all.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Use the yaml-env-action action. - name: Load environment from YAML @@ -42,7 +42,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.GH_PAT }} @@ -93,7 +93,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.GH_PAT }} @@ -130,7 +130,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.GH_PAT }} @@ -197,7 +197,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.GH_PAT }} diff --git a/.github/workflows/starting-course.yml b/.github/workflows/starting-course.yml index fcf5b32f..f8ab971e 100644 --- a/.github/workflows/starting-course.yml +++ b/.github/workflows/starting-course.yml @@ -16,7 +16,7 @@ jobs: if: github.event.repository.name != 'OTTR_Template' steps: - name: checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login as jhudsl-robot run: | @@ -63,7 +63,7 @@ jobs: git commit -m "Template cleanup" pushed_it=true git push || pushed_it=false - echo ::set-output name=pushed_it::$pushed_it + echo "pushed_it=$pushed_it" >> $GITHUB_OUTPUT # If main is already protected, then file a PR - name: Create PR with deleted files @@ -122,7 +122,7 @@ jobs: id: get_org_name run: | org_name=$(dirname ${{github.repository}}) - echo ::set-output name=org_name::$org_name + echo "org_name=$org_name" >> $GITHUB_OUTPUT echo $org_name # Issue for adding the course to the jhudsl library diff --git a/.github/workflows/transfer-rendered-files.yml b/.github/workflows/transfer-rendered-files.yml index df91b77b..3c3577ee 100644 --- a/.github/workflows/transfer-rendered-files.yml +++ b/.github/workflows/transfer-rendered-files.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Use the yaml-env-action action. - name: Load environment from YAML @@ -60,12 +60,12 @@ jobs: results=$(Rscript --vanilla git_repo_check.R --repo "$GITHUB_REPOSITORY" --git_pat "$GH_PAT") echo $QUIZ_REPO exists: $results - echo "::set-output name=git_results::$results" - echo "::set-output name=leanpub_repo::$QUIZ_REPO" + echo "git_results=$results" >> $GITHUB_OUTPUT + echo "leanpub_repo=$QUIZ_REPO" >> $GITHUB_OUTPUT - name: Checkout code from Leanpub repo if: ${{ steps.git_repo_check.outputs.git_results == 'TRUE' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ${{ steps.git_repo_check.outputs.leanpub_repo }} token: ${{ secrets.GH_PAT }} @@ -79,9 +79,9 @@ jobs: # Copy over images folder svn export --force https://github.com/${GITHUB_REPOSITORY}.git/branches/${GITHUB_REF#refs/heads/}/resources/chapt_screen_images resources/chapt_screen_images - # Copy over _bookdown.yml + # Copy over _bookdown.yml svn export --force https://github.com/${GITHUB_REPOSITORY}.git/branches/${GITHUB_REF#refs/heads/}/_bookdown.yml _bookdown.yml - + - name: Create PR with resources files if: ${{ steps.git_repo_check.outputs.git_results == 'TRUE' }} uses: peter-evans/create-pull-request@v3