Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update context.yml #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 3 additions & 31 deletions .github/workflows/context.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: Github Context Dump
on:
workflow_dispatch:
inputs:
tag:
description: Tag name
required: true
isHotfixRelease:
description: Is this a hotfix release? (yes/no)
required: true
pull_request:
push:

env:
VERSION: xxxxx12345-new-version
Expand All @@ -17,27 +11,5 @@ jobs:
dump:
runs-on: ubuntu-latest
steps:
- name: Update experimental version of packages
if: "${{ github.event.inputs.isHotfixRelease != 'yes' }}"
run: echo "exp version"
env:
GITHUB_TOKEN: ${{ env.GITHUB_ACCESS_TOKEN }}
TAG: experimental-${{ github.event.inputs.tag }}
- name: Update hotfix version of packages
if: "${{ github.event.inputs.isHotfixRelease == 'yes' }}"
run: echo "hotfix version"
env:
GITHUB_TOKEN: ${{ env.GITHUB_ACCESS_TOKEN }}
TAG: hotfix-${{ github.event.inputs.tag }}
- name: Publish experimental packages
if: "${{ github.event.inputs.isHotfixRelease != 'yes' }}"
run: echo "exp publish"
env:
TAG: experimental-${{ github.event.inputs.tag }}
- name: Publish hotfix packages
if: "${{ github.event.inputs.isHotfixRelease == 'yes' }}"
run: echo "hotfix publish"
env:
TAG: hotfix-${{ github.event.inputs.tag }}
- name: Github context
run: echo '${{ toJSON(env) }}'
run: echo '${{ toJSON(github) }}'