From e4eb7e8dc1c3220a3b50764a573764a92562043c Mon Sep 17 00:00:00 2001 From: Nischal Shrestha Date: Thu, 4 Jul 2024 16:46:35 +0545 Subject: [PATCH 1/2] fix: clone stage --- .github/workflows/test_frontend.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_frontend.yml b/.github/workflows/test_frontend.yml index 25e315dd..17cb89de 100644 --- a/.github/workflows/test_frontend.yml +++ b/.github/workflows/test_frontend.yml @@ -19,12 +19,12 @@ jobs: name: Build JavaScript assets runs-on: ubuntu-latest environment: - name: ${{ github.ref_name }} + name: ${{ github.ref_name }} steps: - name: Clone repository uses: actions/checkout@v4 with: - ref: ${{ github.ref_name }} + ref: ${{ github.ref }} - name: Use Node.js 19.x uses: actions/setup-node@v1 From eaa628dfcda9fbd6d5603db2ca88aee08cd8d80e Mon Sep 17 00:00:00 2001 From: Nischal Shrestha Date: Thu, 4 Jul 2024 16:48:55 +0545 Subject: [PATCH 2/2] fix: clone with ref instead of ref_name --- .github/workflows/build_and_deploy_DTM_backend.yml | 2 +- .github/workflows/build_and_deploy_DTM_frontend.yml | 4 ++-- .github/workflows/migrations.yml | 4 +++- .github/workflows/pre-commit.yml | 5 ++++- .github/workflows/test_frontend.yml | 4 ++-- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_and_deploy_DTM_backend.yml b/.github/workflows/build_and_deploy_DTM_backend.yml index d9df0a7a..f8d9a50b 100644 --- a/.github/workflows/build_and_deploy_DTM_backend.yml +++ b/.github/workflows/build_and_deploy_DTM_backend.yml @@ -27,7 +27,7 @@ jobs: - name: Clone repository uses: actions/checkout@v3 with: - ref: ${{ github.ref_name }} + ref: ${{ github.ref }} - name: Setup AWS Credentials uses: aws-actions/configure-aws-credentials@v4 diff --git a/.github/workflows/build_and_deploy_DTM_frontend.yml b/.github/workflows/build_and_deploy_DTM_frontend.yml index b08fbc5d..0028ebf6 100644 --- a/.github/workflows/build_and_deploy_DTM_frontend.yml +++ b/.github/workflows/build_and_deploy_DTM_frontend.yml @@ -24,9 +24,9 @@ jobs: name: ${{ github.ref_name }} steps: - name: Clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 with: - ref: ${{ github.ref_name }} + ref: ${{ github.ref }} - name: Use Node.js 19.x uses: actions/setup-node@v1 diff --git a/.github/workflows/migrations.yml b/.github/workflows/migrations.yml index 55365854..5e772d3d 100644 --- a/.github/workflows/migrations.yml +++ b/.github/workflows/migrations.yml @@ -19,8 +19,10 @@ jobs: environment: name: ${{ github.ref_name }} steps: - - name: Checkout repository + - name: Clone repository uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} - name: Setup AWS Credentials uses: aws-actions/configure-aws-credentials@v4 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index a95e6572..7d2100ba 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,7 +15,10 @@ jobs: name: Code Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - name: Clone repository + uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} - name: Use Node.js 19.x uses: actions/setup-node@v1 diff --git a/.github/workflows/test_frontend.yml b/.github/workflows/test_frontend.yml index 17cb89de..635faeab 100644 --- a/.github/workflows/test_frontend.yml +++ b/.github/workflows/test_frontend.yml @@ -19,10 +19,10 @@ jobs: name: Build JavaScript assets runs-on: ubuntu-latest environment: - name: ${{ github.ref_name }} + name: ${{ github.ref_name }} steps: - name: Clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 with: ref: ${{ github.ref }}