-
Notifications
You must be signed in to change notification settings - Fork 13
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
Clean up GitHub Actions. #2921
Merged
Merged
Clean up GitHub Actions. #2921
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0a82e57
Clean up GitHub Actions.
mitchell-as 7badd52
Clean up GitHub Actions.
mitchell-as 73af8d8
Temporarily enable some GitHub Actions for testing.
mitchell-as 5db097a
Merge branch 'mitchell/dx-2339' of https://github.com/ActiveState/cli…
mitchell-as 7d2861c
Temporarily increase timeout.
mitchell-as 664e0e5
Restore the preprocess step for deploy.
mitchell-as ff34013
Revert "Temporarily increase timeout."
mitchell-as e68f4e2
Revert "Temporarily enable some GitHub Actions for testing."
mitchell-as File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,7 @@ jobs: | |
propagate: | ||
name: Propagate to affected version branches | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
go-version: | ||
- 1.20.x | ||
env: | ||
ACTIVESTATE_CI: true | ||
ACTIVESTATE_CLI_DISABLE_RUNTIME: true | ||
SHELL: bash | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JIRA_USERNAME: ${{ secrets.JIRA_EMAIL }} | ||
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} | ||
|
@@ -40,33 +33,16 @@ jobs: | |
name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- # === Install State Tool === | ||
name: Install State Tool | ||
uses: ActiveState/setup-state-tool@v1 | ||
go-version: '1.20.x' | ||
|
||
- # === Setup === | ||
name: Setup | ||
shell: bash | ||
run: | | ||
bin=$(pwd)/.github/deps/${{ runner.os }}/bin | ||
echo "Adding $bin to PATH" | ||
echo "$bin" >> $GITHUB_PATH | ||
# We specify our custom user because we need privileges to push to protected branches | ||
git config user.name "AS-builds" | ||
git config user.email "[email protected]" | ||
|
||
- # === Install Deps === | ||
name: Install Deps | ||
shell: bash | ||
run: state run install-deps | ||
|
||
- # === Preprocess === | ||
name: Preprocess | ||
shell: bash | ||
run: state run preprocess -v | ||
|
||
- # === Propagate PR === | ||
name: Propagate PR | ||
id: propagate_pr | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,14 +46,6 @@ constants: | |
if: ne .OS.Name "Windows" | ||
value: .sh | ||
scripts: | ||
- name: install-deps | ||
language: bash | ||
if: ne .Shell "cmd" | ||
value: | | ||
if ! type "gozip" &> /dev/null; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was originally needed for the offline-installer, but that was moved to its own repo, so this is no longer needed. |
||
echo "gozip was not found on your PATH, installing .." | ||
go install github.com/ActiveState/gozip/cmd/gozip@e455986 | ||
fi | ||
- name: install-deps-dev | ||
language: bash | ||
if: ne .Shell "cmd" | ||
|
@@ -410,7 +402,6 @@ events: | |
if: ne .Shell "cmd" | ||
value: | | ||
$scripts.install-deps-dev.path() | ||
$scripts.install-deps.path() | ||
- name: file-changed | ||
scope: ["internal/locale/locales"] | ||
value: build |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes sense to remove this one here but I think we should include it on workflows that use the state tool as consumers of our analytics could be using this now or may want to in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I don't see a usage of state tool without the
ACTIVESTATE_CI
environment variable defined. Would you please point it out?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just searched and it looks like it's all there. Sorry, when I saw it removed I didn't look in the other files.