From ea56e62def3d3152e506503d2d226d662e9976b2 Mon Sep 17 00:00:00 2001 From: Bae KwonHan Date: Tue, 1 Oct 2024 15:31:32 +0900 Subject: [PATCH] fix github action's version --- .github/workflows/deploy_on_dev.yml | 9 ++++----- .github/workflows/deploy_on_prod.yml | 9 ++++----- .github/workflows/pull-request-merge-precondition.yml | 4 ++-- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy_on_dev.yml b/.github/workflows/deploy_on_dev.yml index 1d5d469..346a694 100644 --- a/.github/workflows/deploy_on_dev.yml +++ b/.github/workflows/deploy_on_dev.yml @@ -11,16 +11,16 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10'] + python-version: ["3.10"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 #- uses: psf/black@stable # with: # options: "--check --verbose" - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -75,7 +75,6 @@ jobs: sparse-checkout: | ${{ steps.info.outputs.repository_name }}/zappa_settings.json - run: mv secret_envs/${{ steps.info.outputs.repository_name }}/zappa_settings.json ./zappa_settings.json && rm -rf secret_envs - # - name: Test with Django Test # run: | # source ./zappa-env/bin/activate @@ -87,7 +86,7 @@ jobs: # pytest . - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.PYCON_DEV_2023_AWS_KEY }} aws-secret-access-key: ${{ secrets.PYCON_DEV_2023_AWS_SECRET }} diff --git a/.github/workflows/deploy_on_prod.yml b/.github/workflows/deploy_on_prod.yml index 9ceaf9e..309d79a 100644 --- a/.github/workflows/deploy_on_prod.yml +++ b/.github/workflows/deploy_on_prod.yml @@ -11,16 +11,16 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10'] + python-version: ["3.10"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 #- uses: psf/black@stable # with: # options: "--check --verbose" - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -75,7 +75,6 @@ jobs: sparse-checkout: | ${{ steps.info.outputs.repository_name }}/zappa_settings.json - run: mv secret_envs/${{ steps.info.outputs.repository_name }}/zappa_settings.json ./zappa_settings.json && rm -rf secret_envs - # - name: Test with Django Test # run: | # source ./zappa-env/bin/activate @@ -87,7 +86,7 @@ jobs: # pytest . - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.PYCON_DEV_2023_AWS_KEY }} aws-secret-access-key: ${{ secrets.PYCON_DEV_2023_AWS_SECRET }} diff --git a/.github/workflows/pull-request-merge-precondition.yml b/.github/workflows/pull-request-merge-precondition.yml index cca8937..7632c59 100644 --- a/.github/workflows/pull-request-merge-precondition.yml +++ b/.github/workflows/pull-request-merge-precondition.yml @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10'] + python-version: ["3.10"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: true # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token fetch-depth: 0 # otherwise, you will failed to push refs to dest repo