Test #60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Test" | |
| permissions: | |
| contents: write | |
| defaults: | |
| run: | |
| shell: bash | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| test-aws-access: | |
| name: AWS access | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup aws to upload installers to CLAW S3 bucket | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| AWS_S3_ROLE_ARN: ${{ secrets.AWS_S3_ROLE_ARN }} | |
| with: | |
| aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: us-west-1 | |
| role-to-assume: ${{ env.AWS_S3_ROLE_ARN }} | |
| role-skip-session-tagging: true | |
| role-duration-seconds: 1200 | |
| - name: Upload installers to CLAW S3 bucket | |
| run: | | |
| pwd | |
| pwd > test123.txt | |
| aws s3 cp test123.txt "s3://cf-cli-dev/" | |
| - name: list S3 for human verification | |
| run: aws s3 ls "s3://cf-cli-dev/" | |
| - name: debug | |
| if: always() | |
| uses: mxschmitt/action-tmate@v3 | |
| create-draft-release: | |
| name: Draft release | |
| if: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout cli | |
| uses: actions/checkout@v4 | |
| - name: Create draft release | |
| if: false | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: true | |
| name: "DRAFT test" | |
| tag_name: "vTest" | |
| fail_on_unmatched_files: true | |
| generate_release_notes: true | |
| files: | | |
| Makefile | |
| README.md | |
| CLAW-access: | |
| name: Test CLAW access | |
| runs-on: ubuntu-latest | |
| if: false | |
| steps: | |
| - name: Checkout CLAW | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: cloudfoundry/CLAW | |
| ref: test-release-update | |
| path: CLAW | |
| ssh-key: ${{ secrets.GIT_CLI_BOT_SSH_KEY }} | |
| - name: Add new version to claw variables | |
| run: | | |
| set -ex | |
| pushd CLAW | |
| pwd >> test123.txt | |
| git add test123.txt | |
| git config user.name cf-cli-eng | |
| git config user.email cf-cli-eng@pivotal.io | |
| git commit -m "Add test file" | |
| git push | |
| popd |