Skip to content

i think im close

i think im close #24

Workflow file for this run

name: Workspace Setup
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * SUN"
push:
branches:
- "*"
- "!skipci*"
jobs:
test:
runs-on: macos-12
timeout-minutes: 120
environment:
name: test-ws-setup
env:
STAGE_NAME: test-ws-setup
permissions:
id-token: write
steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Run workspace setup
# run: |
# sh mdct-setup.sh
- name: curl setup
run: |
curl -o mdct-setup.sh https://raw.githubusercontent.com/Enterprise-CMCS/macpro-mdct-tools/adding-ws-testing/mdct-setup.sh && chmod +x mdct-setup.sh && ./mdct-setup.sh
# - name: OP Signin
# env:
# MDCT_OP_EMAIL: ${{ secrets.MDCT_OP_EMAIL }}
# MDCT_OP_KEY: ${{ secrets.MDCT_OP_KEY }}
# MDCT_OP_PASSWORD: ${{ secrets.MDCT_OP_PASSWORD }}
# run: |
# echo $MDCT_OP_PASSWORD | op signin coforma.1password.com $MDCT_OP_EMAIL $MDCT_OP_KEY
- name: which brew
run: |
which brew
- name: one password test
env:
MDCT_OP_EMAIL: ${{ secrets.MDCT_OP_EMAIL }}
MDCT_OP_KEY: ${{ secrets.MDCT_OP_KEY }}
MDCT_OP_PASSWORD: ${{ secrets.MDCT_OP_PASSWORD }}
MDCT_OP_ADDRESS: ${{ secrets.MDCT_OP_ADDRESS }}
run: |
cd ~/Projects/macpro-mdct-mcr
source /tmp/.profile
nvm install
echo "$OP_PASSWORD" | op account add --address $OP_SIGNIN_ADDRESS --email $OP_EMAIL --secret-key $OP_SECRET_KEY --password-stdin
./run update-env
#Notify the tools channel on failure
# notify_on_failure:
# runs-on: ubuntu-latest
# if: failure()
# needs:
# - test
# steps:
# - name: Slack Notification
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_TITLE: ":boom: The weekly workspace setup job failed in ${{ github.repository }}."
# MSG_MINIMAL: true
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}