From 977eb92386ad7ed05899c7a2461c6d8d70c6d62b Mon Sep 17 00:00:00 2001 From: BrainIsDead Date: Tue, 15 Aug 2023 16:37:58 +0300 Subject: [PATCH 1/2] The changes made in this commit include: - Updated the version of the `actions/checkout` action from `v2` to `v3` in the `.github/workflows/ci.yaml` file. - Modified the checkout step for multiple repositories to use the `actions/checkout@v3` action. - Updated the checkout step for the `src/client/packaging/npm` directory to use the `actions/checkout@v3` action. - Updated the checkout step for the code in the `jobs.build` section to use the `actions/checkout@v3` action. - Added a step to set the output variables `tag` and `repo` in the `jobs.build` section. These changes update the workflow to use the latest version of the `actions/checkout` action and ensure that the code is checked out correctly for each repository. --- .github/workflows/ci.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1f7664b46..9a477517c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,12 +7,12 @@ jobs: steps: - run: mkdir -p repos/undefx - name: Checkout undefx/py3tester - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: undefx/py3tester path: repos/undefx/py3tester - name: Checkout undefx/undef-analysis - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: undefx/undef-analysis path: repos/undefx/undef-analysis @@ -20,31 +20,31 @@ jobs: - run: mkdir -p repos/delphi - name: Checkoutcmu-delphi/operations - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: cmu-delphi/operations path: repos/delphi/operations - name: Checkout cmu-delphi/utils - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: cmu-delphi/utils path: repos/delphi/utils - name: Checkout cmu-delphi/github-deploy-repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: cmu-delphi/github-deploy-repo path: repos/delphi/github-deploy-repo - name: Checkout THIS REPO - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: repos/delphi/delphi-epidata - name: Checkout cmu-delphi/flu-contest - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: cmu-delphi/flu-contest path: repos/delphi/flu-contest - name: Checkout cmu-delphi/nowcast - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: cmu-delphi/nowcast path: repos/delphi/nowcast @@ -98,7 +98,7 @@ jobs: working-directory: src/client/packaging/npm steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14.x' @@ -121,7 +121,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: @@ -141,8 +141,8 @@ jobs: if [ "$imageTag" = "main" ] ; then imageTag="latest" fi - echo "::set-output name=tag::$imageTag" - echo "::set-output name=repo::ghcr.io/${{ github.repository }}" + echo "tag=$imageTag" >> "$GITHUB_OUTPUT" + echo "repo=ghcr.io/${{ github.repository }}" >> "$GITHUB_OUTPUT" - name: Push Dev Tag run: | docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }} From 81eeee8c3cc595655757d8608eee414e7bb202f1 Mon Sep 17 00:00:00 2001 From: BrainIsDead Date: Thu, 17 Aug 2023 13:34:06 +0300 Subject: [PATCH 2/2] The changes made in this commit include: - Updated the version of the `actions/checkout` action from `v2` to `v3` in the `.github/workflows/create-release.yml`, `.github/workflows/missing_signals.yaml`, `.github/workflows/release-helper.yml`, and `.github/workflows/update_gdocs_data.yml` files. - Updated the version of the `actions/setup-python` action from `v2` to `v4` in the `.github/workflows/create-release.yml`, `.github/workflows/missing_signals.yaml`, `.github/workflows/release-helper.yml`, and `.github/workflows/update_gdocs_data.yml` files. - Removed the line `echo -n "::set-output name=next_tag::"` and replaced it with `echo -n $next_tag >> $GITHUB_OUTPUT` in the `.github/workflows/create-release.yml` file. - Removed the line `echo -n "::set-output name=version::"` and replaced it with `echo -n $version >> $GITHUB_OUTPUT` in the `.github/workflows/release-helper.yml` file. --- .github/workflows/create-release.yml | 6 +++--- .github/workflows/missing_signals.yaml | 4 ++-- .github/workflows/release-helper.yml | 6 +++--- .github/workflows/update_gdocs_data.yml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 329fa76aa..ab92a289e 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: main ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }} @@ -22,14 +22,14 @@ jobs: git fetch origin dev:dev git reset --hard origin/dev - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.8 - name: Change version number id: version run: | python -m pip install bump2version - echo -n "::set-output name=next_tag::" + echo -n $next_tag >> $GITHUB_OUTPUT bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",, - name: Create pull request into prod uses: peter-evans/create-pull-request@v3 diff --git a/.github/workflows/missing_signals.yaml b/.github/workflows/missing_signals.yaml index 1b204edb4..c3bb37b36 100644 --- a/.github/workflows/missing_signals.yaml +++ b/.github/workflows/missing_signals.yaml @@ -8,11 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: dev - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.8 - name: Install Dependencies diff --git a/.github/workflows/release-helper.yml b/.github/workflows/release-helper.yml index 71eb94d9f..a15887ed7 100644 --- a/.github/workflows/release-helper.yml +++ b/.github/workflows/release-helper.yml @@ -18,18 +18,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }} - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.8 - name: Extract version id: extract_version run: | python -m pip install bump2version - echo -n "::set-output name=version::" + echo -n $version >> $GITHUB_OUTPUT bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",, - name: Create Release id: create_release diff --git a/.github/workflows/update_gdocs_data.yml b/.github/workflows/update_gdocs_data.yml index c2d6f0c07..d5b1a5e31 100644 --- a/.github/workflows/update_gdocs_data.yml +++ b/.github/workflows/update_gdocs_data.yml @@ -6,12 +6,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: branch: dev ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }} - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.8 - uses: actions/cache@v2