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

merge queue: embarking main (6644b65) and #11 together #13

Closed
wants to merge 2 commits into from
Closed
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
40 changes: 40 additions & 0 deletions .github/workflows/continuous_deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy Orb

on:
release:
types:
- published

jobs:
release:
timeout-minutes: 5
runs-on: ubuntu-22.04
steps:
- name: Checkout 🛎️
uses: actions/[email protected]

# CircleCI only let us promote with patch, minor or major command argument
# Uses a tag in the following format: <semver>-<patch|minor|major>
- name: Get CircleCI Increment from tag
id: circleci_increment
run: |
if [[ ${{ github.ref_name }} =~ [0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\-(patch|minor|major) ]]; then
echo "CIRCLECI_INCREMENT_ARG=${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT"
else
echo "Invalid tag: ${{ github.ref_name }}, expected <semver>-<patch|minor|major>"
exit 1
fi

- name: Install CircleCI CLI
run: |
curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | bash

- name: Publish Orb version
run: |
circleci orb pack src > orb.yml
circleci orb validate orb.yml
circleci orb publish orb.yml mergifyio/ci-issues@dev:test_version \
--token ${{ secrets.CIRCLECI_API_TOKEN }}
circleci orb publish promote mergifyio/ci-issues@dev:test_version \
${{ steps.circleci_increment.outputs.CIRCLECI_INCREMENT_ARG }} \
--token ${{ secrets.CIRCLECI_API_TOKEN }}
Loading