Skip to content

Change GHGC monitoring visibility #1

Change GHGC monitoring visibility

Change GHGC monitoring visibility #1

Workflow file for this run

name: Commit Checks
on: push
jobs:
define-environment:
name: Set ✨ environment ✨ based on the branch 🌳
runs-on: ubuntu-latest
steps:
- name: Set the environment
id: define_environment
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
echo "env_name=staging" >> $GITHUB_OUTPUT
elif [ "${{ github.ref_name }}" == "dev" ]; then
echo "env_name=development" >> $GITHUB_OUTPUT
elif [ "${{ github.ref_name }}" == "production" ]; then
echo "env_name=production" >> $GITHUB_OUTPUT
else
echo "No environment associated with ${GITHUB_REF##*/} branch"
fi
- name: Print the environment
if: ${{ steps.define_environment.outputs.env_name }}
run: echo "The environment is ${{ steps.define_environment.outputs.env_name }}"
outputs:
env_name: ${{ steps.define_environment.outputs.env_name }}
deploy:

Check failure on line 26 in .github/workflows/push.yaml

View workflow run for this annotation

GitHub Actions / Commit Checks

Invalid workflow file

The workflow is not valid. .github/workflows/push.yaml (Line: 26, Col: 3): Error calling workflow 'US-GHG-Center/ghgc-monitoring/.github/workflows/deploy.yaml@2c8878de526ddf7f6ee19b9fdead1ab74c77d1b0'. The workflow is requesting 'id-token: write', but is only allowed 'id-token: none'.

Check failure on line 26 in .github/workflows/push.yaml

View workflow run for this annotation

GitHub Actions / Commit Checks

Invalid workflow file

The workflow is not valid. .github/workflows/push.yaml (Line: 26, Col: 3): Error calling workflow 'US-GHG-Center/ghgc-monitoring/.github/workflows/deploy.yaml@2c8878de526ddf7f6ee19b9fdead1ab74c77d1b0'. The workflow is requesting 'id-token: write', but is only allowed 'id-token: none'.
needs: define-environment
uses: "./.github/workflows/deploy.yaml"
if : ${{ needs.define-environment.outputs.env_name }}
with:
environment: ${{ needs.define-environment.outputs.env_name }}
aws-region: "us-west-2"
secrets: inherit