diff --git a/.github/workflows/try.yml b/.github/workflows/try.yml index ecb1bac..391c1aa 100644 --- a/.github/workflows/try.yml +++ b/.github/workflows/try.yml @@ -38,6 +38,6 @@ jobs: with: name: "terraform-plan-file-${{ github.event.pull_request.number }}-1.tfout" path: devops.plan.tfout - retention-days: 5 + retention-days: 6 \ No newline at end of file diff --git a/.github/workflows/try1.yaml b/.github/workflows/try1.yaml index 63bfa33..cd0404c 100644 --- a/.github/workflows/try1.yaml +++ b/.github/workflows/try1.yaml @@ -8,7 +8,6 @@ on: jobs: merge: - needs: terraform-network runs-on: ubuntu-latest env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -35,21 +34,18 @@ jobs: return artifact.name == "terraform-plan-file-${{ github.event.pull_request.number }}-1.tfout" })[0]; console.log("Hello, world2"); - if (matchArtifact) { console.log("Hello, world3"); let download = await github.rest.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, artifact_id: matchArtifact.id, }); - console.log("Hello, world4"); + console.log("Hello, world5"); let fs = require('fs'); fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data)); - }else { - console.error('Artifact not found');} + - name: Unzip artifact1 run: unzip artifact1.zip - - name: Unzip artifact2 - run: unzip artifact2.zip +