IOS-7635 Blast: no requests to Nownodes or Getblock apis (#802) #659
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Neutral Build | |
on: | |
push: | |
branches: [ develop ] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_DVELOPMENT_IOS }} | |
jobs: | |
tag: | |
name: Create tag | |
runs-on: macOS-latest | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Create tag | |
uses: actions/github-script@v3 | |
with: | |
github-token: ${{ github.token }} | |
script: | | |
github.git.createRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: "refs/tags/${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }}", | |
sha: context.sha | |
}) | |
- name: Build notification | |
if: always() | |
uses: adamkdean/simple-slack-notify@master | |
with: | |
channel: '#development-ios' | |
status: ${{ job.status }} | |
success_text: 'Blockchain SDK tag (${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }}) has been created.' | |
failure_text: 'GitHub Action #${{ github.run_number }} failed. Tag has not been not created.' | |
cancelled_text: 'GitHub Action #${{ github.run_number }} was cancelled' | |
fields: | | |
[{"title": "TAG", "value": "${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }}"}, | |
{"title": "Action URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}"}] |