Skip to content

Commit

Permalink
ci: update ci script for sharing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Jun 16, 2022
1 parent aba3444 commit 1342a2e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build products
name: build_products
on:
push:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Building docker image
name: docker_image

on:
workflow_run:
workflows:
- publish
- "publish_site_release_assets"
types:
- completed

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish web pages, and release, and its assets
name: publish_site_release_assets
on:
pull_request:
branches:
Expand Down Expand Up @@ -37,6 +37,10 @@ jobs:
site:
runs-on: ubuntu-latest
needs: setup
outputs:
tag: ${{ needs.setup.outputs.tag }}
dist: ${{ needs.setup.outputs.dist }}
upload_url: ${{ needs.setup.outputs.upload_url }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -47,6 +51,9 @@ jobs:
- name: Initialize Git
shell: bash
run: |
echo "tag: ${{ needs.setup.outputs.tag }}"
echo "dist: ${{ needs.setup.outputs.dist }}"
echo "url: ${{ needs.setup.outputs.upload_url }}"
git config --global user.name "GitHub Actions"
git config --global user.email "action@github.com"
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/versionup.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Version up
name: version_up

on:
push:
Expand Down

0 comments on commit 1342a2e

Please sign in to comment.