Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix: trigger publish/docker on master & release (#1184) (#1187)
Browse files Browse the repository at this point in the history
* fix: attempt  to fix docker/publish on release again (#1186)

* turn off examples ci

---------

Co-authored-by: Rashad Alston <[email protected]>
  • Loading branch information
ra0x3 and Rashad Alston authored Aug 2, 2023
1 parent a4f7c52 commit f06aada
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,20 @@ jobs:
IS_MASTER: ${{ steps.set-env.outputs.IS_MASTER }}
IS_DEVELOP: ${{ steps.set-env.outputs.IS_DEVELOP }}
IS_RELEASE: ${{ steps.set-env.outputs.IS_RELEASE }}
IS_RELEASE_OR_MASTER_OR_DEVELOP: ${{ steps.set-env.outputs.IS_RELEASE_OR_MASTER_OR_DEVELOP }}
IS_RELEASE_OR_MASTER_OR_DEVELOP_OR_SEMVER: ${{ steps.set-env.outputs.IS_RELEASE_OR_MASTER_OR_DEVELOP_OR_SEMVER }}
steps:
- name: Set env vars
id: set-env
run: >
# Export these vars from `env` to `outputs` for later use echo
"IS_MASTER=${{ env.IS_MASTER }}" >> $GITHUB_OUTPUT echo
"IS_DEVELOP=${{ env.IS_DEVELOP }}" >> $GITHUB_OUTPUT echo
"IS_RELEASE=${{ env.IS_RELEASE }}" >> $GITHUB_OUTPUT echo
"IS_RELEASE_OR_MASTER_OR_DEVELOP=${{ env.IS_MASTER }}" >>
$GITHUB_OUTPUT
if [[ ${{ env.IS_MASTER }} == 'true' || ${{ env.IS_DEVELOP }} == 'true' || ${{ env.IS_RELEASE }} == 'true' || ${{ env.BRANCH_NAME }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "IS_RELEASE_OR_MASTER_OR_DEVELOP_OR_SEMVER=true" >> $GITHUB_OUTPUT
else
echo "IS_RELEASE_OR_MASTER_OR_DEVELOP_OR_SEMVER=false" >> $GITHUB_OUTPUT
fi
echo "IS_MASTER=${{ env.IS_MASTER }}" >> $GITHUB_OUTPUT
echo "IS_DEVELOP=${{ env.IS_DEVELOP }}" >> $GITHUB_OUTPUT
echo "IS_RELEASE=${{ env.IS_RELEASE }}" >> $GITHUB_OUTPUT
docs-test:
uses: FuelLabs/github-actions/.github/workflows/mdbook-docs.yml@master
with:
Expand Down Expand Up @@ -250,8 +246,8 @@ jobs:
run: cargo test --locked --all-targets --features e2e,postgres -p
fuel-indexer-tests -- --test-threads=1
build-default-indexer:
if: needs.set-env-vars.outputs.IS_RELEASE_OR_MASTER_OR_DEVELOP_OR_SEMVER !=
'true'
# if: needs.set-env-vars.outputs.IS_RELEASE_OR_MASTER_OR_DEVELOP_OR_SEMVER != 'true'
if: false
needs:
- cargo-toml-fmt-check
- set-env-vars
Expand Down

0 comments on commit f06aada

Please sign in to comment.