Fix up workflows.
This commit is contained in:
parent
fd70695f8d
commit
c6332fec2d
4 changed files with 18 additions and 18 deletions
10
.github/workflows/build-dev.yaml
vendored
10
.github/workflows/build-dev.yaml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
if [[ -z "$branch_arg" ]]; then
|
||||
branch_arg="$GITHUB_REF_NAME"
|
||||
fi
|
||||
echo "name=branch::$branch_arg" >> $GITHUB_OUTPUT
|
||||
echo "branch=$branch_arg" >> $GITHUB_OUTPUT
|
||||
- uses: actions/checkout@v3
|
||||
name: checkout
|
||||
with:
|
||||
|
@ -34,19 +34,19 @@ jobs:
|
|||
ref: "${{ steps.branch.outputs.branch }}"
|
||||
- name: Get date for artifacts
|
||||
id: date
|
||||
run: echo "name=date::$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||
run: echo "date=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||
- name: Get short SHA for artifacts
|
||||
id: sha
|
||||
run: echo "name=sha::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
- name: Get dev version
|
||||
id: version
|
||||
run: |
|
||||
set -e
|
||||
echo "full name: ${{ github.event.repository.full_name }}"
|
||||
if [[ "${{ github.event.client_payload.release_tag }}" != "" ]]; then
|
||||
echo "name=version::${{ github.event.client_payload.release_tag }}" >> $GITHUB_OUTPUT
|
||||
echo "version=${{ github.event.client_payload.release_tag }}" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "name=version::${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}" >> $GITHUB_OUTPUT
|
||||
echo "version=${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Build World
|
||||
run: |
|
||||
|
|
10
.github/workflows/build-main.yaml
vendored
10
.github/workflows/build-main.yaml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
if [[ -z "$branch_arg" ]]; then
|
||||
branch_arg="$GITHUB_REF_NAME"
|
||||
fi
|
||||
echo "name=branch::$branch_arg" >> $GITHUB_OUTPUT
|
||||
echo "branch=$branch_arg" >> $GITHUB_OUTPUT
|
||||
- uses: actions/checkout@v3
|
||||
name: checkout
|
||||
with:
|
||||
|
@ -34,19 +34,19 @@ jobs:
|
|||
ref: "${{ steps.branch.outputs.branch }}"
|
||||
- name: Get date for artifacts
|
||||
id: date
|
||||
run: echo "name=date::$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
|
||||
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
|
||||
- name: Get short SHA for artifacts
|
||||
id: sha
|
||||
run: echo "name=sha::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
- name: Get version
|
||||
id: version
|
||||
run: |
|
||||
set -e
|
||||
echo "full name: ${{ github.event.repository.full_name }}"
|
||||
if [[ "${{ github.event.client_payload.release_tag }}" != "" ]]; then
|
||||
echo "name=version::${{ github.event.client_payload.release_tag }}" >> $GITHUB_OUTPUT
|
||||
echo "version=${{ github.event.client_payload.release_tag }}" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "name=version::${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}" >> $GITHUB_OUTPUT
|
||||
echo "version=${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Build World
|
||||
run: |
|
||||
|
|
8
.github/workflows/release-dev.yaml
vendored
8
.github/workflows/release-dev.yaml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
|||
- name: repository full name
|
||||
id: full_name
|
||||
run: |
|
||||
echo "name=full_name::$(git config --get remote.origin.url | sed 's|^.*github.com/||g' | sed 's/.git$//g')" >> $GITHUB_OUTPUT
|
||||
echo "full_name=$(git config --get remote.origin.url | sed 's|^.*github.com/||g' | sed 's/.git$//g')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: changes
|
||||
id: changes
|
||||
|
@ -42,17 +42,17 @@ jobs:
|
|||
release_notes="${release_notes//'%'/'%25'}"
|
||||
release_notes="${release_notes//$'\n'/'%0A'}"
|
||||
release_notes="${release_notes//$'\r'/'%0D'}"
|
||||
echo "name=release_notes::${release_notes}" >> $GITHUB_OUTPUT
|
||||
echo "release_notes=${release_notes}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: change_counter
|
||||
id: counter
|
||||
run: |
|
||||
count="$(git log --after "$(date -d "yesterday" +%Y-%m-%d)" --pretty=format:"* %h: %s" | wc -l)"
|
||||
echo "name=count::${count}" >> $GITHUB_OUTPUT
|
||||
echo "count=${count}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Get date for artifacts
|
||||
id: date
|
||||
run: echo "name=date::$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||
run: echo "date=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Repository Dispatch
|
||||
if: steps.counter.outputs.count != '0'
|
||||
|
|
8
.github/workflows/release-main.yaml
vendored
8
.github/workflows/release-main.yaml
vendored
|
@ -40,7 +40,7 @@ jobs:
|
|||
- name: repository full name
|
||||
id: full_name
|
||||
run: |
|
||||
echo "name=full_name::$(git config --get remote.origin.url | sed 's|^.*github.com/||g' | sed 's/.git$//g')" >> $GITHUB_OUTPUT
|
||||
echo "full_name=$(git config --get remote.origin.url | sed 's|^.*github.com/||g' | sed 's/.git$//g')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: changes
|
||||
id: changes
|
||||
|
@ -50,11 +50,11 @@ jobs:
|
|||
release_notes="${release_notes//'%'/'%25'}"
|
||||
release_notes="${release_notes//$'\n'/'%0A'}"
|
||||
release_notes="${release_notes//$'\r'/'%0D'}"
|
||||
echo "name=changes::$(echo ${release_notes} | wc -l)" >> $GITHUB_OUTPUT
|
||||
echo "name=release_notes::${release_notes}" >> $GITHUB_OUTPUT
|
||||
echo "changes=$(echo ${release_notes} | wc -l)" >> $GITHUB_OUTPUT
|
||||
echo "release_notes=${release_notes}" >> $GITHUB_OUTPUT
|
||||
- name: Get date for artifacts
|
||||
id: date
|
||||
run: echo "name=date::$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
|
||||
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Repository Dispatch
|
||||
if: steps.changes.outputs.changes != '0'
|
||||
|
|
Loading…
Reference in a new issue