Skip to content

Commit

Permalink
use env
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Dec 5, 2024
1 parent 33398f3 commit cc63ce4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/MyPublisher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@ on:
schedule:
- cron: '0 20 * * *'

env:
appVersion: 'Current'
environmentName: 'PROD'

jobs:
Initialization:
runs-on: [ ubuntu-latest ]
steps:
- name: Trigger another workflow
- name: Trigger Publish To Environment
uses: octokit/[email protected]
with:
route: POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
workflow_id: PublishToEnvironment.yaml
ref: main
inputs: '{"appVersion":"Current", "environmentName": "PROD"}'
inputs: '{"appVersion": ${{ env.appVersion }}, "environmentName": ${{ env.environmentName}} }'
env:
GITHUB_TOKEN: ${{ secrets.GHTOKENWORKFLOW }}

0 comments on commit cc63ce4

Please sign in to comment.